Browse Source

sendNoticeV2加个日志看看

master
yinzuomei 3 years ago
parent
commit
12d3e60094
  1. 8
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcNoticeServiceImpl.java

8
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcNoticeServiceImpl.java

@ -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());
}

Loading…
Cancel
Save