lyhzzz 1 vuosi sitten
vanhempi
commit
45ba49d3a6
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      src/main/java/com/cdf/service/impl/ExcelService.java

+ 5 - 0
src/main/java/com/cdf/service/impl/ExcelService.java

@@ -141,7 +141,12 @@ public class ExcelService {
         if (! file.getParentFile().exists()) {
             file.getParentFile().mkdirs();
         }
+        log.info("checkFile:{}",localFile);
         uploadToCdfOssUtil.download(awsKey,localFile);
+        if(!file.exists()){
+            throw new BusinessException(ResultCode.UPLOAD_FILE_NO_EXIST);
+        }
+
         List<String> errorList = new ArrayList<>();
         String resultError = null;
         switch (param.getType()){