|
|
@ -32,6 +32,7 @@ import com.epmet.commons.tools.enums.GenderEnum; |
|
|
|
import com.epmet.commons.tools.enums.HouseTypeEnum; |
|
|
|
import com.epmet.commons.tools.enums.RelationshipEnum; |
|
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
|
import com.epmet.commons.tools.exception.EpmetException; |
|
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
|
import com.epmet.commons.tools.feign.ResultDataResolver; |
|
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
@ -173,7 +174,8 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
dto.setIdCard(map.get("ID_CARD")); |
|
|
|
IcResiUserDTO userDTO = baseDao.getResiUser(dto); |
|
|
|
if (null != userDTO && null != userDTO.getIdCard()) { |
|
|
|
throw new RenException(EpmetErrorCode.OPERATION_FAILED.getCode(), EpmetErrorCode.OPERATION_FAILED.getMsg(), "新增居民信息失败,身份证号已存在!", RenException.MessageMode.CODE_INTERNAL_EXTERNAL); |
|
|
|
String errorMsg = "新增居民信息失败,身份证号已存在!"; |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), errorMsg, errorMsg); |
|
|
|
} |
|
|
|
} |
|
|
|
//2021.11.25 end
|
|
|
@ -231,7 +233,8 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
dto.setIdCard(map.get("ID_CARD")); |
|
|
|
IcResiUserDTO userDTO = baseDao.getResiUser(dto); |
|
|
|
if (null != userDTO && null != userDTO.getIdCard()) { |
|
|
|
throw new RenException(EpmetErrorCode.OPERATION_FAILED.getCode(), EpmetErrorCode.OPERATION_FAILED.getMsg(), "修改居民信息失败,身份证号已存在!", RenException.MessageMode.CODE_INTERNAL_EXTERNAL); |
|
|
|
String errorMsg = "修改居民信息失败,身份证号已存在!"; |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), errorMsg, errorMsg); |
|
|
|
} |
|
|
|
} |
|
|
|
//2021.11.25 end
|
|
|
|