-- 库管员添加库存工作台权限
DELETE FROM t_perm_rolepermdetial WHERE FBIZAPPID='=9Q86DR2P+Q' AND FENTITYTYPEID='im_workbench' AND FPERMITEMID='47150e89000000ac' AND FROLEID='2J2ZB/1P7LRC';
INSERT INTO t_perm_rolepermdetial(FID,FENTRYID,FSEQ,FCONTROLMODE,FPERMITEMID,FINHERITMODE,FENTITYTYPEID,FBIZAPPID,FROLEID) VALUES ('46QO6JAH+NVW','46QO6JAH+PFY',0,' ','47150e89000000ac',' ','im_workbench','=9Q86DR2P+Q','2J2ZB/1P7LRC');

-- 仓库主管添加库存工作台和任务管理权限
DELETE FROM t_perm_rolepermdetial WHERE FBIZAPPID='=9Q86DR2P+Q' AND FENTITYTYPEID='im_workbench' AND FPERMITEMID='47150e89000000ac' AND FROLEID='2M0H2VEPUH+Q';
INSERT INTO t_perm_rolepermdetial(FID,FENTRYID,FSEQ,FCONTROLMODE,FPERMITEMID,FINHERITMODE,FENTITYTYPEID,FBIZAPPID,FROLEID) VALUES ('46QO6BCWA2QP','46QO6BCWA1P5',0,' ','47150e89000000ac',' ','im_workbench','=9Q86DR2P+Q','2M0H2VEPUH+Q');
DELETE FROM t_perm_rolepermdetial WHERE FBIZAPPID='=9Q86DR2P+Q' AND FENTITYTYPEID='msbd_wb_task_manage' AND FPERMITEMID='4398POYYTC7I' AND FROLEID='2M0H2VEPUH+Q';
INSERT INTO t_perm_rolepermdetial(FID,FENTRYID,FSEQ,FCONTROLMODE,FPERMITEMID,FINHERITMODE,FENTITYTYPEID,FBIZAPPID,FROLEID) VALUES ('46QO6BCWA2QP','46QO6BCWA1P6',0,' ','4398POYYTC7I',' ','msbd_wb_task_manage','=9Q86DR2P+Q','2M0H2VEPUH+Q');
DELETE FROM t_perm_rolepermdetial WHERE FBIZAPPID='=9Q86DR2P+Q' AND FENTITYTYPEID='msbd_wb_task_manage' AND FPERMITEMID='4398V8IXYQM=' AND FROLEID='2M0H2VEPUH+Q';
INSERT INTO t_perm_rolepermdetial(FID,FENTRYID,FSEQ,FCONTROLMODE,FPERMITEMID,FINHERITMODE,FENTITYTYPEID,FBIZAPPID,FROLEID) VALUES ('46QO6BCWA2QP','46QO6BCWA1P7',0,' ','4398V8IXYQM=',' ','msbd_wb_task_manage','=9Q86DR2P+Q','2M0H2VEPUH+Q');
DELETE FROM t_perm_rolepermdetial WHERE FBIZAPPID='=9Q86DR2P+Q' AND FENTITYTYPEID='msbd_wb_task_manage' AND FPERMITEMID='4398WY+2GVH7' AND FROLEID='2M0H2VEPUH+Q';
INSERT INTO t_perm_rolepermdetial(FID,FENTRYID,FSEQ,FCONTROLMODE,FPERMITEMID,FINHERITMODE,FENTITYTYPEID,FBIZAPPID,FROLEID) VALUES ('46QO6BCWA2QP','46QO6BCWA1P8',0,' ','4398WY+2GVH7',' ','msbd_wb_task_manage','=9Q86DR2P+Q','2M0H2VEPUH+Q');
DELETE FROM t_perm_rolepermdetial WHERE FBIZAPPID='=9Q86DR2P+Q' AND FENTITYTYPEID='msbd_wb_task_manage' AND FPERMITEMID='47150e89000000ac' AND FROLEID='2M0H2VEPUH+Q';
INSERT INTO t_perm_rolepermdetial(FID,FENTRYID,FSEQ,FCONTROLMODE,FPERMITEMID,FINHERITMODE,FENTITYTYPEID,FBIZAPPID,FROLEID) VALUES ('46QO6BCWA2QP','46QO6BCWA1P9',0,' ','47150e89000000ac',' ','msbd_wb_task_manage','=9Q86DR2P+Q','2M0H2VEPUH+Q');
-- 任务管理无新增权限，先去除
DELETE FROM t_perm_rolepermdetial WHERE FBIZAPPID='=9Q86DR2P+Q' AND FENTITYTYPEID='msbd_wb_task_manage' AND FPERMITEMID='47156aff000000ac' AND FROLEID='2M0H2VEPUH+Q';
