lin před 4 roky
rodič
revize
b47583e613

+ 5 - 0
smart-city-platform/src/main/java/com/bz/smart_city/service/importfile/AsyncTaskImportService.java

@@ -149,6 +149,11 @@ public class AsyncTaskImportService {
                     }
                     CellValue customerIdCellValue = evaluator.evaluate(customerIdCell);
                     Integer customerId =   (int) customerIdCellValue.getNumberValue();
+                    if(customerId==0){
+                        messageContent.append("导入失败,");
+                        messageContent.append(ResultStatus.CUSTOMER_IS_NOT_EXISTED.getMessage());
+                        continue;
+                    }
                     dto.setCustomerId(customerId);