|
|
@ -7,6 +7,8 @@ import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.epmet.commons.tools.constant.*; |
|
|
|
import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; |
|
|
|
import com.epmet.commons.tools.enums.ChannelEnum; |
|
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
|
import com.epmet.commons.tools.exception.EpmetException; |
|
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
|
import com.epmet.commons.tools.redis.common.CustomerStaffRedis; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
@ -375,10 +377,16 @@ public class IcNoticeServiceImpl extends BaseServiceImpl<IcNoticeDao, IcNoticeEn |
|
|
|
// 身份证号手机号
|
|
|
|
if (NumConstant.ZERO_STR.equals(formDTO.getOrigin())) { |
|
|
|
IcTripReportRecordEntity icTripReportRecordEntity = icTripReportRecordDao.selectById(bdId); |
|
|
|
if(null==icTripReportRecordEntity){ |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "ic_trip_report_record不存在id=" + bdId + "的记录", "获取身份证手机号为空"); |
|
|
|
} |
|
|
|
entity.setMobile(icTripReportRecordEntity.getMobile()); |
|
|
|
entity.setIdCard(icTripReportRecordEntity.getIdCard()); |
|
|
|
} else if (NumConstant.ONE_STR.equals(formDTO.getOrigin()) || NumConstant.TWO_STR.equals(formDTO.getOrigin())) { |
|
|
|
IcEpidemicSpecialAttentionEntity icEpidemicSpecialAttentionEntity = icEpidemicSpecialAttentionDao.selectById(bdId); |
|
|
|
if (null == icEpidemicSpecialAttentionEntity) { |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "ic_epidemic_special_attention不存在id=" + bdId + "的记录", "获取身份证手机号为空"); |
|
|
|
} |
|
|
|
entity.setMobile(icEpidemicSpecialAttentionEntity.getMobile()); |
|
|
|
entity.setIdCard(icEpidemicSpecialAttentionEntity.getIdCard()); |
|
|
|
} |
|
|
|