feat(REQ-3714): 处理job为空的情况
This commit is contained in:
parent
90ff9f1f70
commit
89f2f81692
@ -135,7 +135,10 @@ public class NodeUserCheckServiceImpl implements NodeUserCheckService {
|
||||
List<NodeUserDTO> organizationalNodeUserList = nodeUserService.list(nodeUserQueryVO);
|
||||
Set<Long> teamLeader = Sets.newHashSet();
|
||||
organizationalNodeUserList.forEach(organizationalNodeUserVO -> {
|
||||
if (IdentityTypeEnum.WORKER_LEADER.getCode().equals(organizationalNodeUserVO.getIdentityType()) || entTeamLeader.equals(organizationalNodeUserVO.getJob().getCode())) {
|
||||
if (IdentityTypeEnum.WORKER_LEADER.getCode().equals(organizationalNodeUserVO.getIdentityType())) {
|
||||
teamLeader.add(organizationalNodeUserVO.getPersonId());
|
||||
}
|
||||
if (Objects.nonNull(organizationalNodeUserVO.getJob()) && entTeamLeader.equals(organizationalNodeUserVO.getJob().getCode())) {
|
||||
teamLeader.add(organizationalNodeUserVO.getPersonId());
|
||||
}
|
||||
});
|
||||
@ -471,7 +474,7 @@ public class NodeUserCheckServiceImpl implements NodeUserCheckService {
|
||||
if (Objects.equals(nodeUser.getIdentityType(), IdentityType.PRACTITIONER.getCode())) {
|
||||
return 20;
|
||||
}
|
||||
if (StrUtil.isBlank(nodeUser.getJob().getCode())) {
|
||||
if (Objects.isNull(nodeUser.getJob()) || StrUtil.isBlank(nodeUser.getJob().getCode())) {
|
||||
return 9999;
|
||||
}
|
||||
switch (nodeUser.getJob().getCode()) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user