From a096a984aee2f3d8ba44418916a3187947e5fe8e Mon Sep 17 00:00:00 2001 From: CMM <2198256324@qq.com> Date: Tue, 27 Jun 2023 14:44:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E5=AE=A1=E6=B5=81=E7=A8=8B=E9=A9=B3?= =?UTF-8?q?=E5=9B=9E,=E9=A2=84=E5=AE=A1=E7=94=B3=E8=AF=B7=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=B8=85=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ningdatech/pmapi/todocenter/manage/HandlerManage.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 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 615f648..cf89a03 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 @@ -263,7 +263,7 @@ public class HandlerManage { // 审批流程不是申请延期和申请借阅,需调用状态机 if (!InstTypeEnum.APPLY_DELAY.getCode().equals(instType) && !InstTypeEnum.APPLY_BORROW.getCode().equals(instType)) { // 更新项目状态和流程状态 - updateRejectProjectStatus(userId, declaredProject); + updateRejectProjectStatus(userId, declaredProject, instType); } //发送消息 noticeManage.sendNotice(instance.getStartUserId(),userId,declaredProject,instance.getProcessDefinitionName(), @@ -373,14 +373,20 @@ public class HandlerManage { * * @param userId * @param declaredProject + * @param instType * @return void * @author CMM * @since 2023/02/08 */ - private void updateRejectProjectStatus(Long userId, Project declaredProject) { + private void updateRejectProjectStatus(Long userId, Project declaredProject, Integer instType) { stateMachineUtils.reject(declaredProject); declaredProject.setUpdateOn(LocalDateTime.now()); declaredProject.setUpdateBy(userId); + // 如果是预审审批驳回,需要重新盖章,原来盖过章的文件要清空 + if (InstTypeEnum.PRELIMINARY_PREVIEW.getCode().equals(instType)){ + declaredProject.setPretrialFileId(null); + declaredProject.setPretrialFileName(null); + } projectService.updateById(declaredProject); }