提交 295e0f43 authored 作者: hzh's avatar hzh

代码优化

上级 03f9f659
package org.dromara.workflow.flowable.listener; package org.dromara.workflow.flowable.listener;
import cn.hutool.core.collection.CollectionUtil;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.dromara.common.core.utils.SpringUtils; import org.dromara.common.core.utils.SpringUtils;
import org.dromara.workflow.common.constant.FlowConstant; import org.dromara.workflow.common.constant.FlowConstant;
...@@ -34,7 +35,9 @@ public class DeptFileApproveGroupListener implements TaskListener { ...@@ -34,7 +35,9 @@ public class DeptFileApproveGroupListener implements TaskListener {
// 调用服务获取审批人列表 // 调用服务获取审批人列表
List<Long> userIds = deptService.selectUserListByFileIdAndRoleKey(fa.getSysDeptFileId(), "file_approve"); List<Long> userIds = deptService.selectUserListByFileIdAndRoleKey(fa.getSysDeptFileId(), "file_approve");
if (CollectionUtil.isEmpty(userIds)) {
userIds = List.of(-1L);
}
// 设置候选用户 // 设置候选用户
delegateTask.setVariable("group", userIds); delegateTask.setVariable("group", userIds);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论