feat(REQ-3714): 处理多个班组长的情况

This commit is contained in:
zhanghonghao 2025-03-14 11:44:48 +08:00
parent 8f1cc335be
commit c9309f5ad7

View File

@ -229,7 +229,7 @@ public class NodeUserCheckServiceImpl implements NodeUserCheckService {
} }
Set<Long> teamLeadPersonSet = new HashSet<>(); Set<Long> teamLeadPersonSet = new HashSet<>();
nodeUsers.stream().filter(e -> e.getIdentityType().equals(IdentityType.WORKER_LEADER.getCode())).findAny().ifPresent(e -> { nodeUsers.stream().filter(e -> e.getIdentityType().equals(IdentityType.WORKER_LEADER.getCode())).forEach(e -> {
BatchDeleteNodeUserCheckResp.CheckFailInfo checkFailInfo = new BatchDeleteNodeUserCheckResp.CheckFailInfo(); BatchDeleteNodeUserCheckResp.CheckFailInfo checkFailInfo = new BatchDeleteNodeUserCheckResp.CheckFailInfo();
checkFailInfo.setType(CheckInfoTypeEnum.TEAM_LEADER); checkFailInfo.setType(CheckInfoTypeEnum.TEAM_LEADER);
addFailInfo(failInfoMap, e.getPersonId(), checkFailInfo); addFailInfo(failInfoMap, e.getPersonId(), checkFailInfo);