Pārlūkot izejas kodu

区域code

tags/24080901
PoffyZhang pirms 1 gada
vecāks
revīzija
0b58765a3b
1 mainītis faili ar 7 papildinājumiem un 5 dzēšanām
  1. +7
    -5
      pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java

+ 7
- 5
pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java Parādīt failu

@@ -179,13 +179,13 @@ public class UserInfoManage {

// 查重符合筛选条件的用户code列表
List<DingEmployeeInfo> dingEmployeeInfoList = iDingEmployeeInfoService.list(Wrappers.lambdaQuery(DingEmployeeInfo.class)
.in(DingEmployeeInfo::getOrganizationCode, compliantOrgCodeList));
.in(DingEmployeeInfo::getEmpPosUnitCode, compliantOrgCodeList));

List<String> compliantOrgEmpCodeList = dingEmployeeInfoList.stream()
.map(DingEmployeeInfo::getEmployeeCode).distinct().collect(Collectors.toList());
if (compliantOrgEmpCodeList.size() > 500) {
throw new BizException("搜索结果过多请缩小搜索范围");
}
// if (compliantOrgEmpCodeList.size() > 500) {
// throw new BizException("搜索结果过多请缩小搜索范围");
// }
return compliantOrgEmpCodeList;
}

@@ -195,7 +195,9 @@ public class UserInfoManage {
* @param userRoleList
*/
private List<Long> getRoleCompliantUserIdList(List<UserRoleVO> userRoleList) {
userRoleList = userRoleList.stream().filter(r -> Objects.nonNull(r.getId())).collect(Collectors.toList());
if(CollUtil.isNotEmpty(userRoleList)){
userRoleList = userRoleList.stream().filter(r -> Objects.nonNull(r.getId())).collect(Collectors.toList());
}
if (CollUtil.isEmpty(userRoleList)) {
return null;
}


Notiek ielāde…
Atcelt
Saglabāt