Browse Source

导入提示

master
zxc 3 years ago
parent
commit
89cd99e66d
  1. 9
      epmet-user/epmet-user-server/src/main/java/com/epmet/excel/handler/IcDangerAreaExcelImportListener.java

9
epmet-user/epmet-user-server/src/main/java/com/epmet/excel/handler/IcDangerAreaExcelImportListener.java

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

Loading…
Cancel
Save