fix: 87827 法规符合性排查流程(主排查人分批下发) --不分发--导出其他zip文件提示语建议修改
This commit is contained in:
+20
-18
@@ -611,24 +611,26 @@ public class ProcessStandardComplianceCheckServiceImpl extends ServiceImpl<Proce
|
|||||||
|
|
||||||
// 获取Excel的header
|
// 获取Excel的header
|
||||||
List<String> headers;
|
List<String> headers;
|
||||||
// try {
|
try {
|
||||||
// headers = ExcelUtils.getHeaderFromExcel(file.getInputStream(), 0);
|
@Cleanup
|
||||||
// } catch (Exception e) {
|
InputStream inputStream = Files.newInputStream(excelfilelist.get(0).toPath());
|
||||||
// errorMsgs.add("模板错误,请按照系统模板导入!");
|
headers = ExcelUtils.getHeaderFromExcel(inputStream, 0);
|
||||||
// resultMap.put("msg", errorMsgs);
|
} catch (Exception e) {
|
||||||
// resultMap.put("flag", YesOrNoEnum.NO.getValue());
|
errorMsgs.add("模板错误,请按照系统模板导入!");
|
||||||
// log.error(e.getMessage(), e);
|
resultMap.put("msg", errorMsgs);
|
||||||
// return resultMap; // 返回错误信息
|
resultMap.put("flag", YesOrNoEnum.NO.getValue());
|
||||||
// }
|
log.error(e.getMessage(), e);
|
||||||
//
|
return resultMap; // 返回错误信息
|
||||||
// // 使用静态方法验证header
|
}
|
||||||
// boolean isMatched = headers.equals(ExcelUtils.getSortedHeadersFromClass(WithoutDistributeExcelTemplate.class));
|
|
||||||
// if (!isMatched) {
|
// 使用静态方法验证header
|
||||||
// errorMsgs.add("模板错误,请按照系统模板导入!");
|
boolean isMatched = headers.equals(ExcelUtils.getSortedHeadersFromClass(WithoutDistributeExcelTemplate.class));
|
||||||
// resultMap.put("msg", errorMsgs);
|
if (!isMatched) {
|
||||||
// resultMap.put("flag", YesOrNoEnum.NO.getValue());
|
errorMsgs.add("模板错误,请按照系统模板导入!");
|
||||||
// return resultMap; // 返回错误信息
|
resultMap.put("msg", errorMsgs);
|
||||||
// }
|
resultMap.put("flag", YesOrNoEnum.NO.getValue());
|
||||||
|
return resultMap; // 返回错误信息
|
||||||
|
}
|
||||||
|
|
||||||
ImportParams params = new ImportParams();
|
ImportParams params = new ImportParams();
|
||||||
params.setTitleRows(0);
|
params.setTitleRows(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user