mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-02-03 04:04:58 +08:00
【功能完善】工作流:审批详情 approve-nodes => activity-nodes 字段
This commit is contained in:
parent
50418b2519
commit
19d3f64bdf
@ -4,6 +4,7 @@ import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.common.util.collection.MapUtils;
|
||||
import cn.iocoder.yudao.framework.common.util.collection.SetUtils;
|
||||
import cn.iocoder.yudao.framework.common.util.number.NumberUtils;
|
||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||
import cn.iocoder.yudao.module.bpm.controller.admin.base.user.UserSimpleBaseVO;
|
||||
@ -201,6 +202,16 @@ public interface BpmProcessInstanceConvert {
|
||||
return userIds;
|
||||
}
|
||||
|
||||
default Set<Long> parseUserIds02(HistoricProcessInstance processInstance,
|
||||
List<HistoricTaskInstance> tasks) {
|
||||
Set<Long> userIds = SetUtils.asSet(Long.valueOf(processInstance.getStartUserId()));
|
||||
tasks.forEach(task -> {
|
||||
CollUtil.addIfAbsent(userIds, NumberUtils.parseLong((task.getAssignee())));
|
||||
CollUtil.addIfAbsent(userIds, NumberUtils.parseLong((task.getOwner())));
|
||||
});
|
||||
return userIds;
|
||||
}
|
||||
|
||||
default BpmApprovalDetailRespVO buildApprovalDetail(BpmnModel bpmnModel,
|
||||
ProcessDefinition processDefinition,
|
||||
BpmProcessDefinitionInfoDO processDefinitionInfo,
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user