Browse Source

1、居民防疫信息查看/epmetuser/epidemicPrevention/detail手机号身份证号脱敏,show

master
yinzuomei 3 years ago
parent
commit
ed87e2e715
  1. 9
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/result/EpidemicPreventionResultDTO.java
  2. 2
      epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcEpidemicPreventionController.java
  3. 4
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcResiUserServiceImpl.java

9
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/result/EpidemicPreventionResultDTO.java

@ -38,6 +38,15 @@ public class EpidemicPreventionResultDTO implements Serializable {
*/
private String idCard;
/**
* 脱敏详情用
*/
private String showMobile;
/**
* 脱敏详情用
*/
private String showIdCard;
private String birthDay;
/**

2
epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcEpidemicPreventionController.java

@ -82,7 +82,7 @@ public class IcEpidemicPreventionController{
* @Author zhaoqifeng
* @Date 2022/3/29 16:13
*/
@MaskResponse(fieldNames = { "mobile", "idCard" }, fieldsMaskType = { MaskResponse.MASK_TYPE_MOBILE, MaskResponse.MASK_TYPE_ID_CARD })
@MaskResponse(fieldNames = { "showMobile", "showIdCard" }, fieldsMaskType = { MaskResponse.MASK_TYPE_MOBILE, MaskResponse.MASK_TYPE_ID_CARD })
@PostMapping("detail")
public Result<EpidemicPreventionResultDTO> detail(@LoginUser TokenDto tokenDto, @RequestBody EpidemicPreventionFormDTO formDTO) {
formDTO.setCustomerId(tokenDto.getCustomerId());

4
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcResiUserServiceImpl.java

@ -1748,8 +1748,10 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi
return result;
}
List<EpidemicPreventionResultDTO> list = baseDao.getEpidemicPreventionList(formDTO);
if (CollectionUtils.isNotEmpty(list)) {
if (CollectionUtils.isNotEmpty(list) && null != list.get(NumConstant.ZERO)) {
result = list.get(NumConstant.ZERO);
result.setShowIdCard(result.getIdCard());
result.setShowMobile(result.getMobile());
//查询网格名称
GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(result.getGridId());
if (null != gridInfo) {

Loading…
Cancel
Save