From 2323e7fab5b393444fc9a1781bd06ec205d993a8 Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Thu, 25 Jul 2024 12:22:30 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E4=BC=98=E5=85=88=E7=BA=A7=E4=BF=AE=E6=94=B9=E4=B8=8D=E6=88=90?= =?UTF-8?q?=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1208574120787968]工单优先级修改不成功 http://192.168.0.96:8090/demo/rdm.html#/bug-detail/939050947543040/939050947543057/1208574120787968 --- .../api/processtask/ProcessTaskUpdateApi.java | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/main/java/neatlogic/module/process/api/processtask/ProcessTaskUpdateApi.java b/src/main/java/neatlogic/module/process/api/processtask/ProcessTaskUpdateApi.java index c3ca9c8f9..4cccec3fd 100644 --- a/src/main/java/neatlogic/module/process/api/processtask/ProcessTaskUpdateApi.java +++ b/src/main/java/neatlogic/module/process/api/processtask/ProcessTaskUpdateApi.java @@ -15,6 +15,8 @@ along with this program. If not, see .*/ package neatlogic.module.process.api.processtask; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; import neatlogic.framework.auth.core.AuthAction; import neatlogic.framework.common.constvalue.ApiParamType; import neatlogic.framework.fulltextindex.core.FullTextIndexHandlerFactory; @@ -23,23 +25,22 @@ import neatlogic.framework.process.auth.PROCESS_BASE; import neatlogic.framework.process.constvalue.ProcessTaskAuditDetailType; import neatlogic.framework.process.constvalue.ProcessTaskAuditType; import neatlogic.framework.process.constvalue.ProcessTaskOperationType; -import neatlogic.module.process.dao.mapper.catalog.PriorityMapper; -import neatlogic.module.process.dao.mapper.process.ProcessTagMapper; -import neatlogic.module.process.dao.mapper.processtask.ProcessTaskMapper; import neatlogic.framework.process.dto.*; import neatlogic.framework.process.exception.priority.PriorityNotFoundException; import neatlogic.framework.process.fulltextindex.ProcessFullTextIndexType; import neatlogic.framework.process.operationauth.core.ProcessAuthManager; -import neatlogic.module.process.service.IProcessStepHandlerUtil; import neatlogic.framework.restful.annotation.Description; import neatlogic.framework.restful.annotation.Input; import neatlogic.framework.restful.annotation.OperationType; import neatlogic.framework.restful.annotation.Param; import neatlogic.framework.restful.constvalue.OperationTypeEnum; import neatlogic.framework.restful.core.privateapi.PrivateApiComponentBase; +import neatlogic.module.process.dao.mapper.catalog.ChannelMapper; +import neatlogic.module.process.dao.mapper.catalog.PriorityMapper; +import neatlogic.module.process.dao.mapper.process.ProcessTagMapper; +import neatlogic.module.process.dao.mapper.processtask.ProcessTaskMapper; +import neatlogic.module.process.service.IProcessStepHandlerUtil; import neatlogic.module.process.service.ProcessTaskService; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONObject; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.ListUtils; import org.apache.commons.lang3.StringUtils; @@ -73,6 +74,9 @@ public class ProcessTaskUpdateApi extends PrivateApiComponentBase { @Resource private IProcessStepHandlerUtil processStepHandlerUtil; + @Resource + private ChannelMapper channelMapper; + @Override public String getToken() { return "processtask/update"; @@ -122,7 +126,8 @@ public class ProcessTaskUpdateApi extends PrivateApiComponentBase { String priorityUuid = jsonObj.getString("priorityUuid"); if (priorityUuid != null) { - if (Objects.equals(processTaskVo.getIsActivePriority(), 1)) { + ChannelVo channelVo = channelMapper.getChannelByUuid(processTaskVo.getChannelUuid()); + if (Objects.equals(channelVo.getIsActivePriority(), 1)) { String oldPriorityUuid = processTaskVo.getPriorityUuid(); if (StringUtils.isNotBlank(priorityUuid) && !priorityUuid.equals(oldPriorityUuid)) { if (priorityMapper.checkPriorityIsExists(priorityUuid) == 0) { -- Gitee