|
|
@ -49,10 +49,7 @@ import com.epmet.constant.IcResiUserConstant; |
|
|
|
import com.epmet.constant.SystemMessageType; |
|
|
|
import com.epmet.constant.UserConstant; |
|
|
|
import com.epmet.dao.IcResiUserDao; |
|
|
|
import com.epmet.dto.CustomerAgencyDTO; |
|
|
|
import com.epmet.dto.IcHouseDTO; |
|
|
|
import com.epmet.dto.IcNeighborHoodDTO; |
|
|
|
import com.epmet.dto.IcResiCategoryStatsConfigDTO; |
|
|
|
import com.epmet.dto.*; |
|
|
|
import com.epmet.dto.form.*; |
|
|
|
import com.epmet.dto.form.demand.UserDemandNameQueryFormDTO; |
|
|
|
import com.epmet.dto.result.*; |
|
|
@ -169,6 +166,17 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
if(!map.containsKey("AGENCY_ID")){ |
|
|
|
throw new RenException("新增居民信息--入参AGENCY_ID为空"); |
|
|
|
} |
|
|
|
//2021.11.25 新增需求 客户下身份证号唯一 start
|
|
|
|
if (map.containsKey("ID_CARD")) { |
|
|
|
IcResiUserDTO dto = new IcResiUserDTO(); |
|
|
|
dto.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
dto.setIdCard(map.get("ID_CARD")); |
|
|
|
IcResiUserDTO userDTO = baseDao.getResiUser(dto); |
|
|
|
if (null != userDTO && null != userDTO.getIdCard()) { |
|
|
|
throw new RenException("新增居民信息失败,身份证号已存在!"); |
|
|
|
} |
|
|
|
} |
|
|
|
//2021.11.25 end
|
|
|
|
//查询组织信息
|
|
|
|
String agencyId = map.get("AGENCY_ID"); |
|
|
|
Result<CustomerAgencyDTO> result = govOrgOpenFeignClient.getAgencyById(agencyId); |
|
|
@ -216,6 +224,17 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
if (!map.containsKey("ID")) { |
|
|
|
throw new RenException(String.format("居民信息修改-居民信息表主键值为空")); |
|
|
|
} |
|
|
|
//2021.11.25 新增需求 客户下身份证号唯一 start
|
|
|
|
if (map.containsKey("ID_CARD")) { |
|
|
|
IcResiUserDTO dto = new IcResiUserDTO(); |
|
|
|
dto.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
dto.setIdCard(map.get("ID_CARD")); |
|
|
|
IcResiUserDTO userDTO = baseDao.getResiUser(dto); |
|
|
|
if (null != userDTO && null != userDTO.getIdCard()) { |
|
|
|
throw new RenException("修改居民信息失败,身份证号已存在!"); |
|
|
|
} |
|
|
|
} |
|
|
|
//2021.11.25 end
|
|
|
|
resiUserId = map.get("ID"); |
|
|
|
} |
|
|
|
} |
|
|
|