fix: 87541 外来标准法规文本库--导入--多层文件夹/多个excel文件提示语建议调整
This commit is contained in:
+3
-3
@@ -1743,7 +1743,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
// 检查Excel的文件名
|
||||
if (!excelName.contains("企业标准法规导入模板.xls") && !excelName.contains("xlsm")) {
|
||||
FileUnZip.deleteDir(saveDirectory);
|
||||
throw new JeroBootException(MessageUtils.getMessage(ResultCommon.IMPORT_TEMPLATE_ERROR));
|
||||
throw new JeroBootException(MessageUtils.getMessage(ResultCommon.CAN_NOT_FIND_TEMPLATE_FILE, "企业标准法规导入模板"));
|
||||
}
|
||||
moduleCode = TableNameEnum.ENTERPRISE_STANDARDS.getValue();
|
||||
}
|
||||
@@ -1751,7 +1751,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
// 检查Excel的文件名
|
||||
if (!excelName.contains("外来标准法规导入模板.xls") && !excelName.contains("xlsm")) {
|
||||
FileUnZip.deleteDir(saveDirectory);
|
||||
throw new JeroBootException(MessageUtils.getMessage(ResultCommon.IMPORT_TEMPLATE_ERROR));
|
||||
throw new JeroBootException(MessageUtils.getMessage(ResultCommon.CAN_NOT_FIND_TEMPLATE_FILE, "外来标准法规导入模板"));
|
||||
}
|
||||
moduleCode = TableNameEnum.DOMESTIC_REGULATIONS.getValue();
|
||||
}
|
||||
@@ -1801,7 +1801,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
if (tag == null && !cell.toString().equals("监察内容")) {
|
||||
FileUnZip.deleteDir(saveDirectory);
|
||||
log.error("找不到" + cell + "对应的字段");
|
||||
throw new JeroBootException(MessageUtils.getMessage(ResultCommon.IMPORT_TEMPLATE_ERROR));
|
||||
throw new JeroBootException(MessageUtils.getMessage(ResultCommon.CAN_NOT_FIND_FIELD, cell.toString()));
|
||||
} else {
|
||||
headerList.add(tag);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user