|
@@ -409,6 +409,11 @@ public class EmailParseService {
|
|
|
String fileSuffix = StrUtil.subAfter(fileName, ".", true);
|
|
|
fileType = ReportParserFileType.getBySuffix(fileSuffix);
|
|
|
}
|
|
|
+ if (fileType == null) {
|
|
|
+ result.setStatus(ReportParseStatus.NO_SUPPORT_TEMPLATE.getCode());
|
|
|
+ result.setMsg(StrUtil.format(ReportParseStatus.NO_SUPPORT_TEMPLATE.getMsg(), fileName));
|
|
|
+ return result;
|
|
|
+ }
|
|
|
// 解析报告
|
|
|
ReportParserParams params = null;
|
|
|
ReportData reportData = null;
|