delete from t_perm_operationrule where fid in ('1X+Q43WP/VHY','1X+248D6=QRH','1X+QE0OLVAIR','1X+QI6RIJEL3','1X+RAYQ08YYB');

INSERT INTO t_perm_operationrule (fid, fenabled, foperationtype, fentitytypeid, fispublic, fbizappid, fispreset, foperationkey, frule) VALUES ('1X+Q43WP/VHY', '1', 'view', 'sou_bidbill', '0', 'SE7SAP7HR2N', '0', 'view', '{"filterRow":[{"id":"1X+Q43W7WSJC","leftBracket":"","compareType":"1245431987888456704","fieldName":"person.number","rightBracket":"","logic":"0","value":[{"id":"1X+Q43W7WT7M","value":""}],"baseDataIds":[]}],"forList":false}');
INSERT INTO t_perm_operationrule (fid, fenabled, foperationtype, fentitytypeid, fispublic, fbizappid, fispreset, foperationkey, frule) VALUES ('1X+QE0OLVAIR', '1', 'view', 'sou_quote', '0', 'SE7SAP7HR2N', '0', 'view', '{"filterRow":[{"id":"1X+QE0O8BNRP","leftBracket":"","compareType":"1245431987888456704","fieldName":"person.number","rightBracket":"","logic":"0","value":[{"id":"1X+QE0O8BOEZ","value":""}],"baseDataIds":[]}],"forList":false}');
INSERT INTO t_perm_operationrule (fid, fenabled, foperationtype, fentitytypeid, fispublic, fbizappid, fispreset, foperationkey, frule) VALUES ('1X+QI6RIJEL3', '1', 'view', 'sou_bidbillcfm', '0', 'SE7SAP7HR2N', '0', 'view', '{"filterRow":[{"id":"1X+QI6R50RU1","leftBracket":"","compareType":"1245431987888456704","fieldName":"person.number","rightBracket":"","logic":"0","value":[{"id":"1X+QI6R50R4T","value":""}],"baseDataIds":[]}],"forList":false}');
INSERT INTO t_perm_operationrule (fid, fenabled, foperationtype, fentitytypeid, fispublic, fbizappid, fispreset, foperationkey, frule) VALUES ('1X+248D6=QRH', '1', 'view', 'sou_inquiry', '0', 'SE7SAP7HR2N', '0', 'view', '{"filterRow":[{"id":"1X+NF31BNGLZ","leftBracket":"","compareType":"1245431987888456704","fieldName":"person.number","rightBracket":"","logic":"0","value":[{"id":"1X+NF31BNH=7","value":""}],"baseDataIds":[]}],"forList":false}');
INSERT INTO t_perm_operationrule (fid, fenabled, foperationtype, fentitytypeid, fispublic, fbizappid, fispreset, foperationkey, frule) VALUES ('1X+RAYQ08YYB', '1', 'view', 'sou_compare', '0', 'SE7SAP7HR2N', '0', 'view', '{"filterRow":[{"id":"1X+RAYPK3VZS","leftBracket":"","compareType":"1245431987888456704","fieldName":"person.number","rightBracket":"","logic":"0","value":[{"id":"1X+RAYPK3WN0","value":""}],"baseDataIds":[]}],"forList":false}');


delete from t_perm_operationrule_l where fid in ('1X+Q43WP/VHY','1X+248D6=QRH','1X+QE0OLVAIR','1X+QI6RIJEL3','1X+RAYQ08YYB');
INSERT INTO t_perm_operationrule_l (fpkid, fid, flocaleid, fname, fdescription) VALUES ('1X+248D6=RER', '1X+248D6=QRH', 'zh_CN', '按当前用户采购组', ' ');
INSERT INTO t_perm_operationrule_l (fpkid, fid, flocaleid, fname, fdescription) VALUES ('1X+Q43WP/W66', '1X+Q43WP/VHY', 'zh_CN', '按当前用户采购组', ' ');
INSERT INTO t_perm_operationrule_l (fpkid, fid, flocaleid, fname, fdescription) VALUES ('1X+QE0OLVB7/', '1X+QE0OLVAIR', 'zh_CN', '按当前用户采购组', ' ');
INSERT INTO t_perm_operationrule_l (fpkid, fid, flocaleid, fname, fdescription) VALUES ('1X+QI6RIJDXV', '1X+QI6RIJEL3', 'zh_CN', '按当前用户采购组', ' ');
INSERT INTO t_perm_operationrule_l (fpkid, fid, flocaleid, fname, fdescription) VALUES ('1X+RAYQ08ZLL', '1X+RAYQ08YYB', 'zh_CN', '按当前用户采购组', ' ');

delete from t_perm_operationruleobj where fid in ('1X+O+Y8V/XJ8','1X+Q662=1MLP','1X+QEYXHPO3P','1X+QIKDO8ZZC','1X+S/0TMDTGE');
INSERT INTO t_perm_operationruleobj (fid, foperationruleid, fseq, fentitytypeid, fobjenabled, fbizappid) VALUES ('1X+O+Y8V/XJ8', '1X+248D6=QRH', 0, 'sou_inquiry', '1', 'SE7SAP7HR2N');
INSERT INTO t_perm_operationruleobj (fid, foperationruleid, fseq, fentitytypeid, fobjenabled, fbizappid) VALUES ('1X+Q662=1MLP', '1X+Q43WP/VHY', 0, 'sou_bidbill', '1', 'SE7SAP7HR2N');
INSERT INTO t_perm_operationruleobj (fid, foperationruleid, fseq, fentitytypeid, fobjenabled, fbizappid) VALUES ('1X+QEYXHPO3P', '1X+QE0OLVAIR', 0, 'sou_quote', '1', 'SE7SAP7HR2N');
INSERT INTO t_perm_operationruleobj (fid, foperationruleid, fseq, fentitytypeid, fobjenabled, fbizappid) VALUES ('1X+QIKDO8ZZC', '1X+QI6RIJEL3', 0, 'sou_bidbillcfm', '1', 'SE7SAP7HR2N');

INSERT INTO t_perm_operationruleobj (fid, foperationruleid, fseq, fentitytypeid, fobjenabled, fbizappid) VALUES ('1X+S/0TMDTGE', '1X+RAYQ08YYB', 0, 'sou_compare', '1', 'SE7SAP7HR2N');



delete from t_bas_comparetypes where fid=1245431987888456704;
INSERT INTO t_bas_comparetypes (fid, fnumber, ffield, fcontantclass, fcreatorid, fcreatetime, fmodifierid, fmodifytime, fstatus, fenable, fmasterid) VALUES (1245431987888456704, 'curgroup', 925963437966652416, 'kd.scm.sou.formplugin.GroupFilterContantParser', 13466739, {ts'2021-09-15 08:43:07'}, 13466739, {ts'2021-09-15 10:14:19'}, 'C', '1', 1245431987888456704);
delete from t_bas_comparetypes_l where fpkid in ('1WZQLKT/KYFA','1WZQLKT/KYFB');
INSERT INTO t_bas_comparetypes_l (fpkid, fid, flocaleid, fname, fdescription) VALUES ('1WZQLKT/KYFA', 1245431987888456704, 'zh_CN', '当前用户采购组', ' ');
INSERT INTO t_bas_comparetypes_l (fpkid, fid, flocaleid, fname, fdescription) VALUES ('1WZQLKT/KYFB', 1245431987888456704, 'zh_TW', '當前用戶采購組', ' ');

delete from t_bas_comparetypeapps where fpkid=1245431988324664320;
INSERT INTO t_bas_comparetypeapps (fpkid, fid, fbasedataid) VALUES (1245431988324664320, 1245431987888456704, 'SE7SAP7HR2N');
