|
|
@@ -51,3 +51,15 @@ INSERT INTO `sys_dict_type` (`dict_name`, `dict_type`, `status`, `create_by`, `c
|
|
|
delete from `sys_dict_data` WHERE `dict_type`='alarm_deal_status';
|
|
|
INSERT INTO `sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 0, '未处置', '0', 'alarm_deal_status', NULL, 'default', 'N', '0', '超级管理员', '2024-04-08 09:39:03', '', NULL, NULL);
|
|
|
INSERT INTO `sys_dict_data` (`dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ( 1, '已处置', '1', 'alarm_deal_status', NULL, 'default', 'N', '0', '超级管理员', '2024-04-08 09:39:12', '', NULL, NULL);
|
|
|
+
|
|
|
+-- 给'泉州','宁德' 下辖网点未设置过角色的人员 新增 “网点安全员”角色
|
|
|
+INSERT INTO sys_user_role (user_id,role_id,create_by,create_time)
|
|
|
+SELECT u.id as user_id,122 as role_id, '超级管理员' create_by, NOW() as create_time
|
|
|
+FROM
|
|
|
+ sys_org org
|
|
|
+ INNER JOIN sys_user u ON org.id = u.org_id
|
|
|
+ LEFT JOIN sys_user_role ur ON u.id =ur.user_id
|
|
|
+WHERE
|
|
|
+ org.type = 4
|
|
|
+ AND org.affiliated_area IN ('泉州','宁德')
|
|
|
+ AND ur.user_id IS null
|