/*
*********************************************************************************************************** 
请将脚本放到相应模块的预插数据目录中,非“通用操作”类型的权限项，编码请不要以QXX开头。注意脚本dbkey要正确。
*********************************************************************************************************** 
*/

-- 刪除之前  新增用戶、刪除用戶 的权限项
delete from t_perm_adminschemedetail where fpermitemid in('46QSRWJ4U7WN','46QSUA0A5Y7T');
delete from t_perm_admingroupfunperm where fpermitemid in('46QSRWJ4U7WN','46QSUA0A5Y7T');

DELETE FROM T_PERM_PERMITEM WHERE FID = '46QSRWJ4U7WN';
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '46QSRWJ4U7WN';

DELETE FROM T_PERM_PERMITEM WHERE FID = '46QSUA0A5Y7T';
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '46QSUA0A5Y7T';

-- 增加 分组授权 的 权限项
DELETE FROM T_PERM_PERMITEM WHERE FID = '475JVY657J0/';
INSERT INTO T_PERM_PERMITEM (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FDESCRIPTION, FBIZAPPID) VALUES ('475JVY657J0/', 'perm_fzauthorize', '10', '10', '47150e89000000ac', '权限使用', ' ');
DELETE FROM T_PERM_PERMITEM_L WHERE FID = '475JVY657J0/';
INSERT INTO T_PERM_PERMITEM_L (FPKID, FID, FLOCALEID, FNAME) VALUES ('475JWZYNUQB6', '475JVY657J0/', 'zh_CN', '分组授权');
