From 3d97d7a2bef796d02503da4cd92a28bbdb5fa28a Mon Sep 17 00:00:00 2001 From: wangliwen Date: Wed, 27 Apr 2022 11:06:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E5=A1=AB=E8=B5=84=E6=BA=90=E6=89=80?= =?UTF-8?q?=E5=B1=9E=E9=83=A8=E9=97=A8=E6=97=B6=EF=BC=8C=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BA=BA=E9=83=A8=E9=97=A8=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E4=BA=BA=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../listener/ResourceOwnerListener.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/renren-admin/src/main/java/io/renren/modules/resourceMountApply/listener/ResourceOwnerListener.java b/renren-admin/src/main/java/io/renren/modules/resourceMountApply/listener/ResourceOwnerListener.java index fad48eb2..c75a2f0c 100644 --- a/renren-admin/src/main/java/io/renren/modules/resourceMountApply/listener/ResourceOwnerListener.java +++ b/renren-admin/src/main/java/io/renren/modules/resourceMountApply/listener/ResourceOwnerListener.java @@ -120,6 +120,15 @@ public class ResourceOwnerListener implements TaskListener, ExecutionListener, A logger.error("未查到该部门对应的 " + roleName); taskService.setAssignee(delegateTask.getId(), "1513432847327199233"); } + } else if (resourceMountApplyDTO.getDeptId() != null) { + SysUserDTO userDTO = sysUserService.getByDeptIdAndRoleId(Long.valueOf(resourceMountApplyDTO.getDeptId()), roleDTO.getId()); + if (userDTO != null) { + logger.error("审批人id:" + userDTO.getId()); + taskService.setAssignee(delegateTask.getId(), userDTO.getId().toString()); + } else { + taskService.setAssignee(delegateTask.getId(), "1513432847327199233"); + logger.error("未查到部门对应 " + resourceMountApplyDTO.getDeptId()); + } } else { logger.error("大数据局名称:" + bigDateDeptName); SysDeptDTO deptDTO = sysDeptService.getByName(bigDateDeptName);