|
@@ -35,7 +35,7 @@ public class ZijinDuplicateInsuranceComponents extends ResponseMessageAbstractHa
|
|
|
|
|
|
|
|
public static final String JQ = "交强险";
|
|
public static final String JQ = "交强险";
|
|
|
|
|
|
|
|
- public static final String SY_REGEX = "商业险.+?终保日期:(\\d+)";
|
|
|
|
|
|
|
+ public static final String SY_REGEX = "商业险.+?终保日期(:?)(\\d+)";
|
|
|
|
|
|
|
|
public static final String SY = "商业险";
|
|
public static final String SY = "商业险";
|
|
|
|
|
|
|
@@ -122,6 +122,12 @@ public class ZijinDuplicateInsuranceComponents extends ResponseMessageAbstractHa
|
|
|
syEndDate = getEndDate(rtnMsg, SY_REGEX);
|
|
syEndDate = getEndDate(rtnMsg, SY_REGEX);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // 商业险
|
|
|
|
|
+ if (rtnMsg.contains(SY)) {
|
|
|
|
|
+ syEndDate = getEndDate(rtnMsg, SY_REGEX);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
if (jqEndDate.isEmpty() && syEndDate.isEmpty()) {
|
|
if (jqEndDate.isEmpty() && syEndDate.isEmpty()) {
|
|
|
throw new SystemException(rtnMsg);
|
|
throw new SystemException(rtnMsg);
|
|
|
}
|
|
}
|