|
@@ -2,6 +2,7 @@ package com.smppw.modaq.application.components;
|
|
|
|
|
|
import cn.hutool.core.collection.ListUtil;
|
|
|
import cn.hutool.core.map.MapUtil;
|
|
|
+import cn.hutool.core.util.NumberUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.smppw.modaq.application.util.EmailUtil;
|
|
|
import com.smppw.modaq.common.conts.EmailTypeConst;
|
|
@@ -350,8 +351,12 @@ public final class ReportParseUtils {
|
|
|
}
|
|
|
}
|
|
|
if (ReportType.WEEKLY.equals(reportType) || ReportType.LETTER.equals(reportType) || ReportType.OTHER.equals(reportType)) {
|
|
|
- Matcher matcher = PatternConsts.STRICT_DAY_PATTERN.matcher(text);
|
|
|
+ Matcher matcher = PatternConsts.DAY_PATTERN.matcher(text);
|
|
|
if (matcher.find()) {
|
|
|
+ String date = matcher.group();
|
|
|
+ if (NumberUtil.isNumber(date) && date.length() >= 10) {
|
|
|
+ return StrUtil.sub(date, 0, 10);
|
|
|
+ }
|
|
|
return matcher.group();
|
|
|
}
|
|
|
}
|