From c2d82d8ddc32e79a48d2a983c841e16e38ce9bee Mon Sep 17 00:00:00 2001 From: wangliwen Date: Wed, 18 May 2022 17:19:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9C=80=E6=B1=82=E5=AE=A1=E6=89=B9=E9=80=9A?= =?UTF-8?q?=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/demanData/listener/DemandDataListener.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/renren-admin/src/main/java/io/renren/modules/demanData/listener/DemandDataListener.java b/renren-admin/src/main/java/io/renren/modules/demanData/listener/DemandDataListener.java index c640dc10..6ec11141 100644 --- a/renren-admin/src/main/java/io/renren/modules/demanData/listener/DemandDataListener.java +++ b/renren-admin/src/main/java/io/renren/modules/demanData/listener/DemandDataListener.java @@ -185,6 +185,12 @@ public class DemandDataListener implements TaskListener, ExecutionListener, Acti demandDataDTO.setApprovalUserName(userDTO != null ? userDTO.getRealName() : null); demandDataDTO.setApprovalOpinions(taskService.getTaskComments(delegateTask.getId()).stream().findFirst().get().getFullMessage()); logger.error("---------------------------更新状态为已拒绝---------------------------------"); + } else { + demandDataDTO.setFlag(TDemandDataEntityFlag.APPROVE.getFlag()); + demandDataDTO.setApprovalUserDeptName(userDTO != null ? userDTO.getDeptName() : null); + demandDataDTO.setApprovalUserName(userDTO != null ? userDTO.getRealName() : null); + demandDataDTO.setApprovalOpinions(taskService.getTaskComments(delegateTask.getId()).stream().findFirst().get().getFullMessage()); + logger.error("---------------------------更新状态为已通过---------------------------------"); } logger.error("demandDataDTO:" + demandDataDTO); Map combineResultMap = new HashMap<>();