|
|
@ -83,7 +83,9 @@ public class IcFollowUpRecordServiceImpl extends BaseServiceImpl<IcFollowUpRecor |
|
|
|
if (null == staffInfo) { |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "查询工作人员缓存信息异常", EpmetErrorCode.SERVER_ERROR.getMsg()); |
|
|
|
} |
|
|
|
|
|
|
|
if(dto.getIdCard().contains("**")||dto.getMobile().contains("**")){ |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "身份证号或者手机号格式错误idCard:" + dto.getIdCard() + ";mobile:" + dto.getMobile(), "身份证号或者手机号格式错误"); |
|
|
|
} |
|
|
|
IcFollowUpRecordEntity entity = ConvertUtils.sourceToTarget(dto, IcFollowUpRecordEntity.class); |
|
|
|
entity.setAgencyId(staffInfo.getAgencyId()); |
|
|
|
insert(entity); |
|
|
|