From 32d85d167c9d9531540cbdfc694f4ece5403dc9b Mon Sep 17 00:00:00 2001 From: CMM <2198256324@qq.com> Date: Wed, 19 Apr 2023 09:54:55 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=BA=93=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pmapi/todocenter/manage/HandlerManage.java | 43 +++++++++++---------- .../pmapi/todocenter/manage/TodoCenterManage.java | 3 ++ ...2023年数字化项目年度计划编辑表.xls | Bin 30720 -> 31744 bytes 3 files changed, 26 insertions(+), 20 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/HandlerManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/HandlerManage.java index e0bdff9..49c6e3e 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/HandlerManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/HandlerManage.java @@ -1,6 +1,25 @@ package com.ningdatech.pmapi.todocenter.manage; -import cn.hutool.core.collection.CollUtil; +import static com.ningdatech.pmapi.todocenter.constant.WorkNoticeContant.*; + +import java.time.LocalDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.stream.Collectors; + +import org.apache.commons.lang3.StringUtils; +import org.flowable.engine.HistoryService; +import org.flowable.engine.RuntimeService; +import org.flowable.engine.TaskService; +import org.flowable.engine.history.HistoricProcessInstance; +import org.flowable.engine.task.Comment; +import org.flowable.variable.api.history.HistoricVariableInstance; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Component; +import org.springframework.transaction.annotation.Transactional; + import com.alibaba.fastjson.JSON; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.ningdatech.basic.exception.BizException; @@ -20,7 +39,6 @@ import com.ningdatech.pmapi.staging.enums.MsgTypeEnum; import com.ningdatech.pmapi.staging.service.IProjectStagingService; import com.ningdatech.pmapi.sys.manage.NoticeManage; import com.ningdatech.pmapi.todocenter.constant.TodoCenterContant; -import com.ningdatech.pmapi.user.service.IUserInfoService; import com.ningdatech.pmapi.user.util.LoginUserUtil; import com.wflow.contants.HisProInsEndActId; import com.wflow.workflow.bean.process.ProgressNode; @@ -28,24 +46,10 @@ import com.wflow.workflow.bean.process.enums.NodeTypeEnum; import com.wflow.workflow.bean.vo.ProcessProgressVo; import com.wflow.workflow.enums.ProcessHandlerEnum; import com.wflow.workflow.service.ProcessInstanceService; + +import cn.hutool.core.collection.CollUtil; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.apache.commons.lang3.StringUtils; -import org.flowable.engine.HistoryService; -import org.flowable.engine.RuntimeService; -import org.flowable.engine.TaskService; -import org.flowable.engine.history.HistoricProcessInstance; -import org.flowable.engine.task.Comment; -import org.flowable.variable.api.history.HistoricVariableInstance; -import org.springframework.beans.BeanUtils; -import org.springframework.stereotype.Component; -import org.springframework.transaction.annotation.Transactional; - -import java.time.LocalDateTime; -import java.util.*; -import java.util.stream.Collectors; - -import static com.ningdatech.pmapi.todocenter.constant.WorkNoticeContant.*; /** * @Classname HandlerManage @@ -62,7 +66,6 @@ public class HandlerManage { private final TaskService taskService; private final HistoryService historyService; - private final IUserInfoService userInfoService; private final IProjectService projectService; private final StateMachineUtils stateMachineUtils; private final ProcessInstanceService processInstanceService; @@ -125,7 +128,7 @@ public class HandlerManage { throw new IllegalStateException("Unexpected value: " + declaredProject.getStatus()); } //发送消息 - noticeManage.sendNotice(currentEmployeeCode,userId,declaredProject,instance.getProcessDefinitionName(), + noticeManage.sendNotice(instance.getStartUserId(),userId,declaredProject,instance.getProcessDefinitionName(), PASS_MSG_TEMPLATE2,MsgTypeEnum.PROJECT_REVIEW_PASS); } else { // 若有下一个审核人(当前节点的用户), diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java index 1c81f09..516db34 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java @@ -209,6 +209,7 @@ public class TodoCenterManage { Project projectInfo = projectInfoMap.get(d.getInstanceId()); ResToBeProcessedVO res = new ResToBeProcessedVO(); BeanUtils.copyProperties(projectInfo, res); + res.setInstCode(d.getInstanceId()); res.setProjectId(projectInfo.getId()); res.setBuildOrg(projectInfo.getBuildOrgName()); res.setDeclaredAmount(projectInfo.getDeclareAmount()); @@ -524,6 +525,7 @@ public class TodoCenterManage { ResToBeProcessedVO res = new ResToBeProcessedVO(); Project projectInfo = projectInfoMap.get(d.getInstanceId()); BeanUtils.copyProperties(projectInfo, res); + res.setInstCode(d.getInstanceId()); res.setBuildOrg(projectInfo.getBuildOrgName()); res.setDeclaredAmount(projectInfo.getDeclareAmount()); res.setProjectId(projectInfo.getId()); @@ -802,6 +804,7 @@ public class TodoCenterManage { ResToBeProcessedVO res = new ResToBeProcessedVO(); Project project = projectInfoMap.get(d.getInstanceId()); BeanUtils.copyProperties(project, res); + res.setInstCode(d.getInstanceId()); res.setNodeId(d.getNodeId()); res.setProjectId(project.getId()); res.setBuildOrg(project.getBuildOrgName()); diff --git a/template/丽水市2023年数字化项目年度计划编辑表.xls b/template/丽水市2023年数字化项目年度计划编辑表.xls index 04432a460dc4fe4451f107f0f4de29fc77241fe0..d078e2ab7bd1bfd59b168e64110c5e1dd201ebc9 100644 GIT binary patch delta 2448 zcmZ`*ZA@Eb6h80ew&k0)z}iwenUjwSD`oN}Utu#rXM`~qluQQ!+5)q{r7+xNONqum zekAIfEXHJhB$^l_33?O%EX$UdxL^L+ek>SSwnhJ#pfmoEk+Ax__qHz-YMXm|pZ7WE zIp;m+^xnJlfGusX4?0-$cbzvFYv&f_hOd!`ns7WyBog9i#r4xT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