|
@@ -45,7 +45,7 @@ public class CRI0382 extends QCCatalogue {
|
|
|
boolean isOutTime = false;
|
|
|
Date currentDate = new Date();
|
|
|
int timeCha = 21600000;
|
|
|
- String[] dateFormats = new String[]{"yyyy年MM月dd日HH时mm分", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm"};
|
|
|
+ String[] dateFormats = new String[] { "yyyy年MM月dd日HH时mm分", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm" };
|
|
|
for (CrisisInfoDoc crisisInfoDoc : crisisInfoDocs) {
|
|
|
String reptTime = crisisInfoDoc.getStructureMap().get("报告时间");
|
|
|
if (StringUtils.isNotEmpty(reptTime)) {
|
|
@@ -72,7 +72,7 @@ public class CRI0382 extends QCCatalogue {
|
|
|
String crisisName = crisisInfoDoc.getStructureMap().get("危急结果值");
|
|
|
String crisisNm = "";
|
|
|
String companyNum = "";
|
|
|
- if (crisisName.contains("项目为")) {
|
|
|
+ /*if (crisisName.contains("项目为")) {
|
|
|
crisisName = crisisName.substring(crisisName.indexOf("项目为") + 3);
|
|
|
}
|
|
|
if (crisisName.contains(",结果:")) {
|
|
@@ -84,7 +84,7 @@ public class CRI0382 extends QCCatalogue {
|
|
|
}
|
|
|
if (crisisName.matches("[\\s\\S]*[(?==)][^,;,;。]{0,8}(?=秒)[\\s\\S]*")) {
|
|
|
crisisName = crisisName.split("=")[0];
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
//匹配文书检验结果书写格式
|
|
|
crisisName = StringUtil.removeBlank(crisisName)
|
|
@@ -115,11 +115,7 @@ public class CRI0382 extends QCCatalogue {
|
|
|
, StringUtil.removeBlank(crisisName));
|
|
|
if ((StringUtil.parseDateTime(recordTimeStr, dateFormats).getTime() - StringUtil.parseDateTime(reptTime, dateFormats).getTime()) < timeCha
|
|
|
&& reptTimeMatch
|
|
|
- && (StringUtil.removeBlank(docReptContent).contains(StringUtil.removeBlank(crisisName)) ||
|
|
|
- (StringUtil.isNotBlank(crisisNm) && StringUtil.isNotBlank(companyNum)
|
|
|
- && StringUtil.removeBlank(docReptContent).contains(StringUtil.removeBlank(crisisNm))
|
|
|
- && StringUtil.removeBlank(docReptContent).contains(StringUtil.removeBlank(companyNum))
|
|
|
- ))
|
|
|
+ && (StringUtil.removeBlank(docReptContent).contains(StringUtil.removeBlank(crisisName)))
|
|
|
|| flag) {
|
|
|
findCrisises.add(reptTime);
|
|
|
break;
|
|
@@ -213,4 +209,4 @@ public class CRI0382 extends QCCatalogue {
|
|
|
return annotation;
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|