|
@@ -1261,3 +1261,40 @@ INSERT INTO `t_dictionary`(`name`, `parentId`, `code`, `value`, `gradation`, `gm
|
|
|
VALUES ('增加或修改增信措施', (select t.id from t_dictionary t where t.code = 'reviewAndAdjustmentTypes'), 'reviewAndAdjustmentTypes_G', NULL, 6, now(), now());
|
|
|
INSERT INTO `t_dictionary`(`name`, `parentId`, `code`, `value`, `gradation`, `gmt_create`, `gmt_modified`)
|
|
|
VALUES ('其他', (select t.id from t_dictionary t where t.code = 'reviewAndAdjustmentTypes'), 'reviewAndAdjustmentTypes_H', NULL, 7, now(), now());
|
|
|
+
|
|
|
+delete from sys_user_org_rel
|
|
|
+where org_id in
|
|
|
+ (select id from sys_org where id = 26 or parent_id = 26);
|
|
|
+
|
|
|
+
|
|
|
+delete from sys_user_role_rel
|
|
|
+where role_id in
|
|
|
+ (select id from sys_role where id = 4 or parent_id = 4);
|
|
|
+
|
|
|
+
|
|
|
+delete from sys_role_permission_rel
|
|
|
+
|
|
|
+where role_id in
|
|
|
+
|
|
|
+ (select id from sys_role where id = 4 or parent_id = 4);
|
|
|
+
|
|
|
+
|
|
|
+delete from sys_user where id in
|
|
|
+ (
|
|
|
+ select user_id from sys_user_org_rel
|
|
|
+ where org_id in
|
|
|
+ (select id from sys_org where id = 26 or parent_id = 26)
|
|
|
+ );
|
|
|
+
|
|
|
+
|
|
|
+delete from sys_org where id = 26 or parent_id = 26;
|
|
|
+
|
|
|
+
|
|
|
+delete from sys_role where id = 4 or parent_id = 4;
|
|
|
+
|
|
|
+INSERT INTO `t_permission`( `parentId`, `type`, `cname`, `ename`, `gradation`, `moduleName`, `url`, `icon`, `user_create`, `user_modified`, `gmt_create`, `gmt_modified`)
|
|
|
+VALUES ( 145, 'button', '下载报告', 'downloadProjectReport', 1, '项目授信管理', '/project/downloadProjectReport', NULL, NULL, NULL, now(), now());
|
|
|
+
|
|
|
+INSERT INTO `t_permission`( `parentId`, `type`, `cname`, `ename`, `gradation`, `moduleName`, `url`, `icon`, `user_create`, `user_modified`, `gmt_create`, `gmt_modified`)
|
|
|
+VALUES ( 149, 'button', '下载报告', 'downloadSupplierInfoReport', 1, '供应商授信管理', '/supplier/downloadSupplierInfoReport', NULL, NULL, NULL, now(), now());
|
|
|
+
|