Browse Source

用户筛选

regionId null
master
niohe·erbao 1 year ago
parent
commit
0852b9c5bf
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java

+ 5
- 1
pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java View File

@@ -68,10 +68,14 @@ public class UserInfoManage {

List<Long> userIdList = getRoleCompliantUserIdList(req.getUserRoleList());
if (userIdList != null && userIdList.size() == 0) {
pageVo.setRecords(new ArrayList<>());
pageVo.setTotal(0L);
return pageVo;
}
List<String> compliantOrgEmpCodeList = getCompliantOrgEmpCodeList(req.getOrgName(), orgCode, regionId);
if (compliantOrgEmpCodeList != null && compliantOrgEmpCodeList.size() == 0) {
pageVo.setRecords(new ArrayList<>());
pageVo.setTotal(0L);
return pageVo;
}

@@ -123,7 +127,7 @@ public class UserInfoManage {
}

private List<String> getCompliantOrgEmpCodeList(String orgName, String orgCode, Long regionId) {
if (Objects.nonNull(regionId)&& regionId == 331100L){
if (Objects.nonNull(regionId) && regionId == 331100L) {
// 丽水默认查全部
regionId = null;
}


Loading…
Cancel
Save