|
|
@@ -145,14 +145,28 @@ public class UserInfoManage { |
|
|
|
// 查重符合筛选条件的组织列表 |
|
|
|
if (StringUtils.isNotBlank(orgName)) { |
|
|
|
List<DingOrganization> dingOrganizationList = iDingOrganizationService.list(Wrappers.lambdaQuery(DingOrganization.class) |
|
|
|
.like(DingOrganization::getOrganizationName, orgName)); |
|
|
|
List<String> compliantOrgNameList = dingOrganizationList.stream() |
|
|
|
.like(DingOrganization::getOrganizationName, orgName) |
|
|
|
.notIn(DingOrganization::getTypeCode, "GOV_INTERNAL_INSTITUTION") |
|
|
|
); |
|
|
|
|
|
|
|
List<String> compliantOrgNameCodeList = dingOrganizationList.stream() |
|
|
|
.map(DingOrganization::getOrganizationCode) |
|
|
|
.collect(Collectors.toList()); |
|
|
|
if (CollUtil.isEmpty(compliantOrgNameList)) { |
|
|
|
if (CollUtil.isEmpty(compliantOrgNameCodeList)) { |
|
|
|
return new ArrayList<>(); |
|
|
|
} |
|
|
|
|
|
|
|
// 取交集 |
|
|
|
List<String> tempCompliantOrgCodeList = new ArrayList<>(); |
|
|
|
for (String compliantOrgNameCode : compliantOrgNameCodeList) { |
|
|
|
if (compliantOrgCodeList.contains(compliantOrgNameCode)) { |
|
|
|
tempCompliantOrgCodeList.add(compliantOrgNameCode); |
|
|
|
} |
|
|
|
} |
|
|
|
compliantOrgCodeList = tempCompliantOrgCodeList; |
|
|
|
if (CollUtil.isEmpty(compliantOrgCodeList)) { |
|
|
|
return new ArrayList<>(); |
|
|
|
} |
|
|
|
compliantOrgCodeList.addAll(compliantOrgNameList); |
|
|
|
} |
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(orgCode)) { |
|
|
@@ -417,7 +431,7 @@ public class UserInfoManage { |
|
|
|
resUserDetailVO.setOrgName(userFullInfo.getOrganizationName()); |
|
|
|
resUserDetailVO.setRegionCode(userFullInfo.getRegionCode()); |
|
|
|
resUserDetailVO.setRegionName(regionCacheHelper.getRegionName(userFullInfo.getRegionCode() |
|
|
|
,RegionConst.RL_COUNTY)); |
|
|
|
, RegionConst.RL_COUNTY)); |
|
|
|
resUserDetailVO.setEmpPosUnitCode(userFullInfo.getEmpPosUnitCode()); |
|
|
|
resUserDetailVO.setEmpPosUnitName(userFullInfo.getEmpPosUnitName()); |
|
|
|
} |
|
|
|