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<>();