|
@ -1466,6 +1466,11 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
query.eq(IcResiUserEntity::getId, resiUserId); |
|
|
query.eq(IcResiUserEntity::getId, resiUserId); |
|
|
IcResiUserEntity resiEntity = baseDao.selectOne(query); |
|
|
IcResiUserEntity resiEntity = baseDao.selectOne(query); |
|
|
|
|
|
|
|
|
|
|
|
// 找不到居民,返回空
|
|
|
|
|
|
if (resiEntity == null) { |
|
|
|
|
|
return null; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
IcResiUserBriefDTO r = new IcResiUserBriefDTO(); |
|
|
IcResiUserBriefDTO r = new IcResiUserBriefDTO(); |
|
|
|
|
|
|
|
|
BeanUtil.copyProperties(resiEntity, r); |
|
|
BeanUtil.copyProperties(resiEntity, r); |
|
@ -1511,18 +1516,17 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
// 3.居民类别填充
|
|
|
// 3.居民类别填充
|
|
|
List<String> resiCategoryColumns = Arrays.stream(ResiCategoryEnum.values()).map(c -> c.getColName()).collect(Collectors.toList()); |
|
|
List<String> resiCategoryColumns = Arrays.stream(ResiCategoryEnum.values()).map(c -> c.getColName()).collect(Collectors.toList()); |
|
|
|
|
|
|
|
|
Map<String, String> resiCategories = new HashMap<>(); |
|
|
ArrayList<String> resiCategoryNames = new ArrayList<>(); |
|
|
|
|
|
|
|
|
Map<String, String> categories = icResiUserDao.getCategoryListMap(resiCategoryColumns, resiUserId); |
|
|
Map<String, String> categories = icResiUserDao.getCategoryListMap(resiCategoryColumns, resiUserId); |
|
|
categories.forEach((k, v) -> { |
|
|
categories.forEach((k, v) -> { |
|
|
if (NumConstant.ONE_STR.equals(v)) { |
|
|
if (NumConstant.ONE_STR.equals(v)) { |
|
|
ResiCategoryEnum enumObject = ResiCategoryEnum.getEnum(k); |
|
|
ResiCategoryEnum enumObject = ResiCategoryEnum.getEnum(k); |
|
|
resiCategories.put(k, enumObject.getLabel()); |
|
|
resiCategoryNames.add(enumObject.getLabel()); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
r.setResiCategoryNames(String.join("、", resiCategoryNames)); |
|
|
r.setResiCategories(resiCategories); |
|
|
|
|
|
|
|
|
|
|
|
return r; |
|
|
return r; |
|
|
} |
|
|
} |
|
|