|
@ -35,6 +35,7 @@ import com.epmet.commons.tools.dto.form.DictListFormDTO; |
|
|
import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; |
|
|
import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; |
|
|
import com.epmet.commons.tools.dto.result.DictListResultDTO; |
|
|
import com.epmet.commons.tools.dto.result.DictListResultDTO; |
|
|
import com.epmet.commons.tools.dto.result.OptionDataResultDTO; |
|
|
import com.epmet.commons.tools.dto.result.OptionDataResultDTO; |
|
|
|
|
|
import com.epmet.commons.tools.dto.result.OptionResultDTO; |
|
|
import com.epmet.commons.tools.enums.*; |
|
|
import com.epmet.commons.tools.enums.*; |
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
import com.epmet.commons.tools.exception.EpmetException; |
|
|
import com.epmet.commons.tools.exception.EpmetException; |
|
@ -64,6 +65,8 @@ import com.epmet.dto.result.demand.OptionDTO; |
|
|
import com.epmet.dto.result.lingshan.ConfigPartyCenterHouseFormDTO; |
|
|
import com.epmet.dto.result.lingshan.ConfigPartyCenterHouseFormDTO; |
|
|
import com.epmet.dto.result.resi.IcResiNonDynamicResultDTO; |
|
|
import com.epmet.dto.result.resi.IcResiNonDynamicResultDTO; |
|
|
import com.epmet.entity.*; |
|
|
import com.epmet.entity.*; |
|
|
|
|
|
import com.epmet.enums.LingShanHelpCrowdTypeEnum; |
|
|
|
|
|
import com.epmet.enums.LingShanSpecialCrowdTypeEnums; |
|
|
import com.epmet.enums.RenHuConditionEnum; |
|
|
import com.epmet.enums.RenHuConditionEnum; |
|
|
import com.epmet.excel.EpidemicPreventionExportExcel; |
|
|
import com.epmet.excel.EpidemicPreventionExportExcel; |
|
|
import com.epmet.excel.support.ExportResiUserItemDTO; |
|
|
import com.epmet.excel.support.ExportResiUserItemDTO; |
|
@ -82,6 +85,7 @@ import com.google.common.cache.CacheBuilder; |
|
|
import lombok.SneakyThrows; |
|
|
import lombok.SneakyThrows; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.apache.commons.collections4.CollectionUtils; |
|
|
import org.apache.commons.collections4.CollectionUtils; |
|
|
|
|
|
import org.apache.commons.collections4.MapUtils; |
|
|
import org.apache.commons.compress.utils.Lists; |
|
|
import org.apache.commons.compress.utils.Lists; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.jetbrains.annotations.NotNull; |
|
|
import org.jetbrains.annotations.NotNull; |
|
@ -181,6 +185,8 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
private IcVaccineRelationDao icVaccineRelationDao; |
|
|
private IcVaccineRelationDao icVaccineRelationDao; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private IcSpecialDao icSpecialDao; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 组织字段,目前用于居民信息动态查询接口。将此条件从conditions中移除,单独生成固定的sql片段 |
|
|
* 组织字段,目前用于居民信息动态查询接口。将此条件从conditions中移除,单独生成固定的sql片段 |
|
@ -1665,6 +1671,40 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
r.setIcUserName(resiEntity.getName()); |
|
|
r.setIcUserName(resiEntity.getName()); |
|
|
r.setRhzk(resiEntity.getRhzk()); |
|
|
r.setRhzk(resiEntity.getRhzk()); |
|
|
r.setGzdw(resiEntity.getGzdw()); |
|
|
r.setGzdw(resiEntity.getGzdw()); |
|
|
|
|
|
// 因灵山项目添加一下几列 start
|
|
|
|
|
|
r.setMz(resiEntity.getMz()); |
|
|
|
|
|
r.setYhzgx(resiEntity.getYhzgx()); |
|
|
|
|
|
r.setYhzgxName(StrConstant.EPMETY_STR); |
|
|
|
|
|
Result<List<OptionResultDTO>> yhzgxRes=epmetAdminOpenFeignClient.getRelationshipOption(); |
|
|
|
|
|
if(yhzgxRes.success()&&CollectionUtils.isNotEmpty(yhzgxRes.getData())){ |
|
|
|
|
|
Map<String, String> yhzgxMap = yhzgxRes.getData().stream().collect(Collectors.toMap(OptionResultDTO::getValue, OptionResultDTO::getLabel)); |
|
|
|
|
|
if(MapUtils.isNotEmpty(yhzgxMap)&&yhzgxMap.containsKey(r.getYhzgx())){ |
|
|
|
|
|
r.setYhzgxName(yhzgxMap.get(r.getYhzgx())); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
// 重点人群:信访人员、社区矫正、精障患者、戒毒人员、安置帮教
|
|
|
|
|
|
List<String> specialCrowdName = new ArrayList<>(); |
|
|
|
|
|
IcSpecialEntity icSpecialEntity = icSpecialDao.selectByResiId(resiUserId); |
|
|
|
|
|
if (null != icSpecialEntity) { |
|
|
|
|
|
for (LingShanSpecialCrowdTypeEnums e : LingShanSpecialCrowdTypeEnums.values()) { |
|
|
|
|
|
if (icSpecialEntity.getSpecialRqlb().contains(e.getType())) { |
|
|
|
|
|
specialCrowdName.add(e.getName()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
r.setSpecialCrowdName(specialCrowdName); |
|
|
|
|
|
//重点帮扶人员类别
|
|
|
|
|
|
List<String> helpCrowdName = new ArrayList<>(); |
|
|
|
|
|
List<String> crowdTypeList = icSpecialDao.selectHelpCrowdType(resiUserId); |
|
|
|
|
|
if (CollectionUtils.isNotEmpty(crowdTypeList)) { |
|
|
|
|
|
for (LingShanHelpCrowdTypeEnum e : LingShanHelpCrowdTypeEnum.values()) { |
|
|
|
|
|
if (crowdTypeList.contains(e.getType())) { |
|
|
|
|
|
helpCrowdName.add(e.getName()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
r.setHelpCrowdName(helpCrowdName); |
|
|
|
|
|
// end lingshan
|
|
|
|
|
|
|
|
|
// 填充网格、小区名称
|
|
|
// 填充网格、小区名称
|
|
|
String errorMsg = "【居民信息简介】查询网格、小区信息失败"; |
|
|
String errorMsg = "【居民信息简介】查询网格、小区信息失败"; |
|
|