/*  creator：IERP
请将脚本交给基础服务组的同事放到预插数据目录中,切勿自行预置权限项，多谢配合！
业务部门自行添加的权限项编码请不要使用QXX开头
*********************************************************************
*/


/* 2021212
*/
DELETE FROM T_PERM_PERMITEM WHERE FID = '2334G42Y762K';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('2334G42Y762K', 'rim_sync_stop', '10', '20', '47150e89000000ac', ' ', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '2334G42Y762K';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('2334GQTUZIRV', '2334G42Y762K', 'zh_CN', '停止');

/* 2021213
*/
DELETE FROM T_PERM_PERMITEM WHERE FID = '22XRYGRH7JEB';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('22XRYGRH7JEB', 'rim_inv_debinding', '10', '20', '47150e89000000ac', ' ', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '22XRYGRH7JEB';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('22XWZD=NAEH/', '22XRYGRH7JEB', 'zh_CN', '发票解绑');

DELETE FROM T_PERM_PERMITEM WHERE FID = '22XS2XAN5OT2';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('22XS2XAN5OT2', 'rim_update_exp_status', '10', '20', '47150e89000000ac', ' ', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '22XS2XAN5OT2';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('22XWZD=NADTR', '22XS2XAN5OT2', 'zh_CN', '修改发票报销状态');
/* 2021214
*/
DELETE FROM T_PERM_PERMITEM WHERE FID = '23+Y3P5F6LEE';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('23+Y3P5F6LEE', 'rim_batch_download', '10', '20', '47150e89000000ac', ' ', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '23+Y3P5F6LEE';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('23+Y47I2+PRV', '23+Y3P5F6LEE', 'zh_CN', '发票下载');

DELETE FROM T_PERM_PERMITEM WHERE FID = '23/40QTRX11Y';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('23/40QTRX11Y', 'rim_batch_check', '10', '20', '47150e89000000ac', ' ', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '23/40QTRX11Y';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('23/421DJZ1BB', '23/40QTRX11Y', 'zh_CN', '批量查验');

DELETE FROM T_PERM_PERMITEM WHERE FID = '23/62PGTF0FY';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('23/62PGTF0FY', 'rim_excel_submit', '10', '20', '47150e89000000ac', ' ', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '23/62PGTF0FY';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('23/7/04YE=J8', '23/62PGTF0FY', 'zh_CN', 'EXCEL导入提交');

DELETE FROM T_PERM_PERMITEM WHERE FID = '23/6H74NBNNY';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('23/6H74NBNNY', 'rim_excel_temp_down', '10', '20', '47150e89000000ac', ' ', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '23/6H74NBNNY';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('23/7/04YEA7H', '23/6H74NBNNY', 'zh_CN', 'EXCEL模板下载');

DELETE FROM T_PERM_PERMITEM WHERE FID = '23/5V=G2RUCF';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('23/5V=G2RUCF', 'rim_list_submit', '10', '20', '47150e89000000ac', ' ', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '23/5V=G2RUCF';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('23/7/04YE=J9', '23/5V=G2RUCF', 'zh_CN', '列表数据提交');

DELETE FROM T_PERM_PERMITEM WHERE FID = '23/6/9H4CZAV';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('23/6/9H4CZAV', 'rim_scanner_submit', '10', '20', '47150e89000000ac', ' ', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '23/6/9H4CZAV';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('23/7/04YEA7I', '23/6/9H4CZAV', 'zh_CN', '扫描仪提交');

DELETE FROM T_PERM_PERMITEM WHERE FID = '23/6B4TR10C8';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('23/6B4TR10C8', 'rim_cancel_pre_check', '10', '20', '47150e89000000ac', ' ', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '23/6B4TR10C8';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('23/7/04YE=J=', '23/6B4TR10C8', 'zh_CN', '撤销预勾选');

DELETE FROM T_PERM_PERMITEM WHERE FID = '23/9875BB9E9';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('23/9875BB9E9', 'rim_select_confirm', '10', '20', '47150e89000000ac', ' ', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '23/9875BB9E9';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('23/9CHTI=VB1', '23/9875BB9E9', 'zh_CN', '提交勾选确认');

DELETE FROM T_PERM_PERMITEM WHERE FID = '23/JY+G53AJ7';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('23/JY+G53AJ7', 'rim_invoice_select', '10', '20', '47150e89000000ac', ' ', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '23/JY+G53AJ7';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('23/M3I+OIMFF', '23/JY+G53AJ7', 'zh_CN', '发票勾选');

DELETE FROM T_PERM_PERMITEM WHERE FID = '23/K8T1S32++';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('23/K8T1S32++', 'rim_cancel_deduction', '10', '20', '47150e89000000ac', ' ', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '23/K8T1S32++';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('23/M3I+OILS6', '23/K8T1S32++', 'zh_CN', '撤销旅客运输税额抵扣');

DELETE FROM T_PERM_PERMITEM WHERE FID = '23/K1GA7A6R+';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('23/K1GA7A6R+', 'rim_cancel_check', '10', '20', '47150e89000000ac', ' ', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '23/K1GA7A6R+';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('23/M3I+OIMFG', '23/K1GA7A6R+', 'zh_CN', '撤销勾选');

DELETE FROM T_PERM_PERMITEM WHERE FID = '23/JLKKTE6R/';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('23/JLKKTE6R/', 'rim_export_invoice', '10', '20', '47150e89000000ac', ' ', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '23/JLKKTE6R/';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('23/M3I+OILS7', '23/JLKKTE6R/', 'zh_CN', '导出发票');

DELETE FROM T_PERM_PERMITEM WHERE FID = '23/PEG+R76+A';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('23/PEG+R76+A', 'rim_exp_status_update', '10', '20', '47150e89000000ac', ' ', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '23/PEG+R76+A';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('23/PERJ7AT=Y', '23/PEG+R76+A', 'zh_CN', '单据类型维护');

DELETE FROM T_PERM_PERMITEM WHERE FID = '23/RBRAS0S=S';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('23/RBRAS0S=S', 'rim_manual_sync', '10', '20', '47150e89000000ac', ' ', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '23/RBRAS0S=S';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('23/RCOXGGYMR', '23/RBRAS0S=S', 'zh_CN', '手工同步');

DELETE FROM T_PERM_PERMITEM WHERE FID = '23/S+X51PPQZ';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('23/S+X51PPQZ', 'rim_fail_retry', '10', '20', '47150e89000000ac', ' ', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '23/S+X51PPQZ';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('23/S0S0SLALF', '23/S+X51PPQZ', 'zh_CN', '失败重新处理');

/* 2021115
*/
DELETE FROM T_PERM_PERMITEM WHERE FID = '1PAFGP5MO1NU';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('1PAFGP5MO1NU', 'rim_pc_excel', '10', '20', '47150e89000000ac', 'excel上传发票', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '1PAFGP5MO1NU';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('232TF4ADHY+W', '1PAFGP5MO1NU', 'zh_CN', '发票签收导入模板下载');

DELETE FROM T_PERM_PERMITEM WHERE FID = '1PAF9M===5VG';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('1PAF9M===5VG', 'rim_pc_scanner', '10', '20', '47150e89000000ac', '扫描仪采集', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '1PAF9M===5VG';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('232TF4ADHYO4', '1PAF9M===5VG', 'zh_CN', '扫描采集');

DELETE FROM T_PERM_PERMITEM WHERE FID = '1PAF60J9M7WZ';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('1PAF60J9M7WZ', 'rim_pc_upload', '10', '20', '47150e89000000ac', '发票采集文件上传', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '1PAF60J9M7WZ';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('232TF4ADHY+X', '1PAF60J9M7WZ', 'zh_CN', '文件上传');

DELETE FROM T_PERM_PERMITEM WHERE FID = '1PAFDMU3AIX/';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('1PAFDMU3AIX/', 'rim_pc_scan_gun', '10', '20', '47150e89000000ac', '扫码枪采集', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '1PAFDMU3AIX/';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('232TF4ADHYO5', '1PAFDMU3AIX/', 'zh_CN', '扫码采集');

DELETE FROM T_PERM_PERMITEM WHERE FID = '1PAF7SR=C+7R';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('1PAF7SR=C+7R', 'rim_pc_input', '10', '20', '47150e89000000ac', '手工录入发票', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '1PAF7SR=C+7R';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('232TF4ADHY+Y', '1PAF7SR=C+7R', 'zh_CN', '手工录入');

DELETE FROM T_PERM_PERMITEM WHERE FID = '232T7GFDOWDW';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('232T7GFDOWDW', 'rim_inv_check_temp', '10', '20', '47150e89000000ac', ' ', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '232T7GFDOWDW';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('232TF4ADHYO6', '232T7GFDOWDW', 'zh_CN', '发票查验模板下载');

DELETE FROM T_PERM_PERMITEM WHERE FID = '232T1QMPOH+I';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('232T1QMPOH+I', 'rim_paper_receipt', '10', '20', '47150e89000000ac', ' ', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '232T1QMPOH+I';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('232TF4ADHY+Z', '232T1QMPOH+I', 'zh_CN', '纸票签收');
 

/* 20220106
*/
DELETE FROM T_PERM_PERMITEM WHERE FID = '251PPI92VIL5';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('251PPI92VIL5', 'rim_invoice_import', '10', '20', '47150e89000000ac', 'excel全票池发票引入', '0QHC5B1PZ/Z3');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '251PPI92VIL5';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('251PQGP+SZ0Q', '251PPI92VIL5', 'zh_CN', '全票池引入');

/* 20220118
*/
DELETE FROM T_PERM_PERMITEM WHERE FID = '2633TNGWR5RK';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('2633TNGWR5RK', 'rim_unsign_invoice', '10', '20', '47150e89000000ac', '发票反签收', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '2633TNGWR5RK';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('2633YFT47YKX', '2633TNGWR5RK', 'zh_CN', '发票反签收');

/* 20220119
*/
DELETE FROM T_PERM_PERMITEM WHERE FID = '263VK6XB31JH';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('263VK6XB31JH', 'rim_view_inv_import', '10', '20', '47150e89000000ac', '查看发票引入结果', '0QHC8968SM1T');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '263VK6XB31JH';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('263VML+UBLYV', '263VK6XB31JH', 'zh_CN', '查看发票引入结果');

