From 07209d1204a4655b46d58c1d8786bb626a3a1c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?niohe=C2=B7erbao?= Date: Mon, 17 Apr 2023 16:13:35 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=94=A8=E6=88=B7=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ningdatech/pmapi/user/manage/UserInfoManage.java | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java index 2556ea8..cc293b3 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java @@ -125,10 +125,6 @@ public class UserInfoManage { } private List getCompliantOrgEmpCodeList(String orgName, String orgCode, Long regionId) { - if (Objects.nonNull(regionId) && regionId == 331100L) { - // 丽水默认查全部 - regionId = null; - } if (StringUtils.isBlank(orgName) && StringUtils.isBlank(orgCode) && Objects.isNull(regionId)) { return null; } @@ -434,7 +430,7 @@ public class UserInfoManage { userInfo.setUserName(u.getRealName()); // 根据 单位code获取单位名称 UserFullInfoDTO userFullInfo = userInfoHelper.getUserFullInfo(u.getId()); - if(Objects.nonNull(userFullInfo)){ + if (Objects.nonNull(userFullInfo)) { userInfo.setOrgCode(userFullInfo.getEmpPosUnitCode()); userInfo.setOrgName(userFullInfo.getEmpPosUnitName()); } @@ -443,12 +439,12 @@ public class UserInfoManage { } public Map getUserMapByEmployeeCode(Set staterUsers) { - if(CollUtil.isEmpty(staterUsers)){ + if (CollUtil.isEmpty(staterUsers)) { return Collections.emptyMap(); } List userInfos = iUserInfoService.list(Wrappers.lambdaQuery(UserInfo.class) - .in(UserInfo::getEmployeeCode,staterUsers)); - if(CollUtil.isEmpty(userInfos)){ + .in(UserInfo::getEmployeeCode, staterUsers)); + if (CollUtil.isEmpty(userInfos)) { return Collections.emptyMap(); } return userInfos.stream().map(u -> { @@ -457,7 +453,7 @@ public class UserInfoManage { userInfo.setUserName(u.getRealName()); // 根据 单位code获取单位名称 UserFullInfoDTO userFullInfo = userInfoHelper.getUserFullInfo(u.getId()); - if(Objects.nonNull(userFullInfo)){ + if (Objects.nonNull(userFullInfo)) { userInfo.setOrgCode(userFullInfo.getEmpPosUnitCode()); userInfo.setOrgName(userFullInfo.getEmpPosUnitName()); } @@ -472,7 +468,7 @@ public class UserInfoManage { processInstanceUserDto.setUserName(userInfo.getRealName()); // 根据 单位code获取单位名称 UserFullInfoDTO userFullInfo = userInfoHelper.getUserFullInfo(userInfo.getId()); - if(Objects.nonNull(userFullInfo)){ + if (Objects.nonNull(userFullInfo)) { processInstanceUserDto.setOrgCode(userFullInfo.getEmpPosUnitCode()); processInstanceUserDto.setOrgName(userFullInfo.getEmpPosUnitName()); }