|
@@ -127,7 +127,7 @@ public class ExcelService {
|
|
excelWriter.finish();
|
|
excelWriter.finish();
|
|
}
|
|
}
|
|
|
|
|
|
- public void checkFile(UploadHotsParam param) {
|
|
|
|
|
|
+ public List<String> checkFile(UploadHotsParam param) {
|
|
if(StringUtils.isBlank(param.getFilePath()) || param.getType() == null){
|
|
if(StringUtils.isBlank(param.getFilePath()) || param.getType() == null){
|
|
throw new BusinessException(ResultCode.PARAM_MISS);
|
|
throw new BusinessException(ResultCode.PARAM_MISS);
|
|
}
|
|
}
|
|
@@ -163,9 +163,9 @@ public class ExcelService {
|
|
}
|
|
}
|
|
|
|
|
|
if(!errorList.isEmpty()){
|
|
if(!errorList.isEmpty()){
|
|
- resultError = String.join(",", errorList);
|
|
|
|
- throw new BusinessException(ResultCode.UPLOAD_EXCEL_ERROR.code,resultError);
|
|
|
|
|
|
+ return errorList;
|
|
}
|
|
}
|
|
|
|
+ return errorList;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|