|
@ -78,7 +78,7 @@ public class IcEnterpriseExcelImportListener implements ReadListener<EnterpriseI |
|
|
ObjectUtil.objectToTrim(data); |
|
|
ObjectUtil.objectToTrim(data); |
|
|
// 根据网格名是否能找到网格id
|
|
|
// 根据网格名是否能找到网格id
|
|
|
if (!gridMap.containsKey(data.getGridName())) { |
|
|
if (!gridMap.containsKey(data.getGridName())) { |
|
|
throw new ValidateException(String.format("您所在的组织,不存在【%s】", data.getGridName())); |
|
|
throw new ValidateException(String.format("场所区域为网格名称,您所在的组织,不存在【%s】", data.getGridName())); |
|
|
} |
|
|
} |
|
|
if(!placeTypeMap.containsKey(data.getPlaceTypeName())){ |
|
|
if(!placeTypeMap.containsKey(data.getPlaceTypeName())){ |
|
|
throw new ValidateException(String.format("【%s】场所类型不存在",data.getPlaceTypeName())); |
|
|
throw new ValidateException(String.format("【%s】场所类型不存在",data.getPlaceTypeName())); |
|
|