feat(REQ-4586) - 添加冗余审批人信息时的日志信息

This commit is contained in:
wangli 2025-07-17 10:33:16 +08:00
parent 468dd38e3f
commit 7541a2b20e

View File

@ -165,9 +165,11 @@ public class TaskEntityEventHandle implements EntityEventHandle<TaskEntity> {
private OrgStructureSnapshotInfo buildApproverOrgStructureInfo(BpmnTaskDelegateAssigner assignee, TaskEntity taskEntity) {
// 先将审批人的提级审批重置为 false
assignee.setSupportUpgradeApproval(false);
log.info("build approve org info -> approve : {}, activity: {}", JSON.toJSONString(assignee), taskEntity.getTaskDefinitionKey());
List<OrgNodeUserDTO> nodeUsers = fetchUserExtInfo(assignee);
OrgStructureSnapshotInfo.OrgStructureSnapshotInfoBuilder builder = OrgStructureSnapshotInfo.builder();
if (CollectionUtils.isEmpty(nodeUsers)) {
log.info("fetch user ext info is empty");
return builder.build();
}
OrgNodeUserDTO firstNodeUser = nodeUsers.get(0);