Ver Fonte

导入建筑

lin há 4 anos atrás
pai
commit
7155b458a1

+ 1 - 1
smart-city-platform/src/main/java/com/bz/smart_city/excel/resolver/BuildingResolverExcelService.java

@@ -61,7 +61,7 @@ public class BuildingResolverExcelService implements ResolverExcelService {
                     Cell addressCell = row.getCell(8);
                     Cell c_remark = row.getCell(9);
 
-                    addressCell.setCellType(CellType.STRING);
+                    if(addressCell!=null)addressCell.setCellType(CellType.STRING);
 
                     if (buildingNameCell == null || StringUtils.equals("", buildingNameCell.getStringCellValue())) {
                         continue;