From b2ff8a828f7468f37e1a0583e5d8e26ebaaf71b3 Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Fri, 21 Mar 2025 14:52:28 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20IT=E6=9C=8D=E5=8A=A1-?= =?UTF-8?q?=E6=81=A2=E5=A4=8D=E6=B5=81=E7=A8=8B=E5=9B=BE=E9=80=9A=E7=94=A8?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E8=87=AA=E5=8A=A8=E5=AE=A1=E6=89=B9=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1381866135846912]IT服务-恢复流程图通用节点自动审批功能 http://192.168.0.96:8090/demo/rdm.html#/story-detail/939050947543040/939050947543042/1381866135846912 --- .../ShowAutoApprovalRegulateHandler.java | 41 +++++++++++++++++++ .../OmnipotentProcessUtilHandler.java | 2 +- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 src/main/java/neatlogic/module/process/stephandler/regulatehandler/ShowAutoApprovalRegulateHandler.java diff --git a/src/main/java/neatlogic/module/process/stephandler/regulatehandler/ShowAutoApprovalRegulateHandler.java b/src/main/java/neatlogic/module/process/stephandler/regulatehandler/ShowAutoApprovalRegulateHandler.java new file mode 100644 index 000000000..cd57df23f --- /dev/null +++ b/src/main/java/neatlogic/module/process/stephandler/regulatehandler/ShowAutoApprovalRegulateHandler.java @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 深圳极向量科技有限公司 All Rights Reserved. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package neatlogic.module.process.stephandler.regulatehandler; + +import com.alibaba.fastjson.JSONObject; +import neatlogic.framework.config.ConfigManager; +import neatlogic.framework.process.constvalue.ItsmTenantConfig; +import neatlogic.framework.process.stephandler.core.IProcessStepInternalHandler; +import neatlogic.framework.process.stephandler.core.IRegulateHandler; +import org.springframework.stereotype.Service; + +@Service +public class ShowAutoApprovalRegulateHandler implements IRegulateHandler { + /** + * 是否显示自动审批 + **/ + @Override + public String getName() { + return "showAutoApproval"; + } + + @Override + public void regulateConfig(IProcessStepInternalHandler processStepInternalHandler, JSONObject oldConfigObj, JSONObject newConfigObj) { + newConfigObj.put("showAutoApproval", ConfigManager.getConfig(ItsmTenantConfig.PROCESSTASK_STEP_AUTOAPPROVAL_SHOW)); + } +} diff --git a/src/main/java/neatlogic/module/process/stephandler/utilhandler/OmnipotentProcessUtilHandler.java b/src/main/java/neatlogic/module/process/stephandler/utilhandler/OmnipotentProcessUtilHandler.java index 1bc00e544..738347395 100644 --- a/src/main/java/neatlogic/module/process/stephandler/utilhandler/OmnipotentProcessUtilHandler.java +++ b/src/main/java/neatlogic/module/process/stephandler/utilhandler/OmnipotentProcessUtilHandler.java @@ -74,7 +74,7 @@ public class OmnipotentProcessUtilHandler extends ProcessStepInternalHandlerBase @Override public String[] getRegulateKeyList() { - return new String[]{"authorityList", "notifyPolicyConfig", "actionConfig", "customButtonList", "customStatusList", "replaceableTextList", "workerPolicyConfig", "taskConfig", "enableReapproval", "autoComplete", "autoApproval", "formSceneUuid", "formSceneName", "autoStart", "isNeedUploadFile", "isNeedContent", "isRequired", "commentTemplateId", "tagList"}; + return new String[]{"authorityList", "notifyPolicyConfig", "actionConfig", "customButtonList", "customStatusList", "replaceableTextList", "workerPolicyConfig", "taskConfig", "enableReapproval", "autoComplete", "autoApproval", "showAutoApproval", "formSceneUuid", "formSceneName", "autoStart", "isNeedUploadFile", "isNeedContent", "isRequired", "commentTemplateId", "tagList"}; } @Override -- Gitee