Browse Source

新增系统参数:是否强制删除计划及其下属任务数据

jingyuanchao 2 years ago
parent
commit
09c8aba7e9

+ 3 - 0
project_data/sql/0.0.2/soc/soc.sql

@@ -1477,3 +1477,6 @@ DELETE from sys_role where id=143;
 INSERT INTO `sys_role`(`id`, `org_type`, `role_name`, `role_key`, `role_sort`, `data_scope`, `menu_check_strictly`, `dept_check_strictly`, `status`, `del_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (143, '4', '业务库值班员', 'default', 11, 1, 1, 1, '0', 0, '安全检查', '2023-09-28 15:52:01', '', NULL, NULL);
 DELETE from sys_dict_data where dict_label='非营业时间';
 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 ( 5, '非营业时间', '5', 'resumption_plan_exec', NULL, 'default', 'N', '0', '安全检查', '2023-09-28 15:54:56', '', NULL, NULL);
+-- 新增系统参数:是否强制删除计划及其下属任务数据
+delete from sys_config where config_key='FORCE_DELETE_PLAN_DATA' limit 1;
+INSERT INTO sys_config (config_name, config_key, config_value, config_type, create_by, create_time, update_by, update_time, remark) VALUES ('是否强制删除计划', 'FORCE_DELETE_PLAN_DATA', '0', 'Y', 'slsjyc', '2023-09-28 16:38:28', '', null, '0:否,1:是');

+ 4 - 1
soc-common/soc-common-core/src/main/java/com/xunmei/common/core/constant/SystemParameterConstant.java

@@ -112,6 +112,9 @@ public class SystemParameterConstant {
     public static final String AREA_REC_DRILL_TASK_MAX = "AREA_REC_DRILL_TASK_MAX";
 
 
-
+    /**
+     * 是否强制删除计划及其下属任务数据 0:否,1:是
+     */
+    public static final String FORCE_DELETE_PLAN_DATA = "FORCE_DELETE_PLAN_DATA";
 
 }