UPDATE  T_HBSS_CONTRACTTYPECAT SET FORINAME='劳动合同',FORINUMBER = '1010_S' ,FORISTATUS ='0',FISSYSPRESET='1' WHERE FID =1366793061547512832;
UPDATE  T_HBSS_CONTRACTTYPECAT SET FORINAME='用工协议',FORINUMBER = '1020_S' ,FORISTATUS ='0',FISSYSPRESET='1' WHERE FID =1366793180992898048;
UPDATE  T_HBSS_CONTRACTTYPECAT SET FORINAME='其他附属协议',FORINUMBER = '1030_S' ,FORISTATUS ='0',FISSYSPRESET='1' WHERE FID =1366793317483942912;

UPDATE  T_HBSS_CONTRACTTYPES SET FORINAME='劳动合同',FORINUMBER = '1010_S' ,FORISTATUS ='0',FISSYSPRESET='1' WHERE FID =1406559486235128832;
UPDATE  T_HBSS_CONTRACTTYPES SET FORINAME='用工协议',FORINUMBER = '1020_S' ,FORISTATUS ='0',FISSYSPRESET='1' WHERE FID =1406559629453833216;
UPDATE  T_HBSS_CONTRACTTYPES SET FORINAME='其他附属协议',FORINUMBER = '1030_S' ,FORISTATUS ='0',FISSYSPRESET='1' WHERE FID =1406559744344208384;

UPDATE  T_HBSS_CONTRACTTYPECAT_L SET FORINAME='劳动合同'  WHERE FID =1366793061547512832;
UPDATE  T_HBSS_CONTRACTTYPECAT_L SET FORINAME='用工协议'  WHERE FID =1366793180992898048;
UPDATE  T_HBSS_CONTRACTTYPECAT_L SET FORINAME='其他附属协议' WHERE FID =1366793317483942912;

UPDATE  T_HBSS_CONTRACTTYPES_L SET FORINAME='劳动合同'      WHERE FID =1406559486235128832;
UPDATE  T_HBSS_CONTRACTTYPES_L SET FORINAME='用工协议'      WHERE FID =1406559629453833216;
UPDATE  T_HBSS_CONTRACTTYPES_L SET FORINAME='其他附属协议'   WHERE FID =1406559744344208384;

UPDATE  T_HBSS_CONTRACTTYPES SET FORISTATUS ='1' WHERE FID =1406559486235128832
AND (FNAME!='劳动合同' OR FNUMBER != '1010_S' OR FGROUPID!=1366793061547512832 OR FDESCRIPTION!=' ' OR FSTATUS!='C' OR FENABLE!='1' OR FCTRLSTRATEGY!='5');
UPDATE  T_HBSS_CONTRACTTYPES SET FORISTATUS ='1' WHERE FID=1406559629453833216
AND (FNAME!='用工协议' OR FNUMBER != '1020_S' OR FGROUPID!=1366793180992898048 OR FDESCRIPTION!=' ' OR FSTATUS!='C' OR FENABLE!='1' OR FCTRLSTRATEGY!='5');
UPDATE  T_HBSS_CONTRACTTYPES SET FORISTATUS ='1' WHERE FID =1406559744344208384
AND (FNAME!='其他附属协议' OR FNUMBER != '1030_S' OR FGROUPID!=1366793317483942912 OR FDESCRIPTION!=' ' OR FSTATUS!='C' OR FENABLE!='1' OR FCTRLSTRATEGY!='5');
UPDATE  T_HBSS_CONTRACTTYPECAT SET FORISTATUS ='1' WHERE FISSYSPRESET='1' AND (FNAME!=FORINAME OR FNUMBER != FORINUMBER OR FSTATUS!='C' OR FENABLE!='1');