|
|
@ -79,6 +79,15 @@ public class IcDangerAreaExcelImportListener implements ReadListener<IcDangerAre |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
if (StringUtils.isBlank(entity.getProvince())){ |
|
|
|
throw new EpmetException("省未填写"); |
|
|
|
} |
|
|
|
if (StringUtils.isBlank(entity.getCity())){ |
|
|
|
throw new EpmetException("市未填写"); |
|
|
|
} |
|
|
|
if (StringUtils.isBlank(entity.getDistrict())){ |
|
|
|
throw new EpmetException("区未填写"); |
|
|
|
} |
|
|
|
entity.setDangerLevel(dangerLevelMap.get(entity.getDangerLevel())); |
|
|
|
entity.setCustomerId(customerId); |
|
|
|
datas.add(entity); |
|
|
|