소스 검색

导入建筑

lin 4 년 전
부모
커밋
7155b458a1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      smart-city-platform/src/main/java/com/bz/smart_city/excel/resolver/BuildingResolverExcelService.java

+ 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;