|
|
@@ -350,16 +350,6 @@ public class YongchengOrderApiServiceImpl implements YongchengOrderApiService {
|
|
|
|
|
|
}
|
|
|
|
|
|
- //endregion
|
|
|
-
|
|
|
- public static void main(String[] args) {
|
|
|
- String a = "交易失败:当前日志所在服务器地址:[1]!重复投保提示:该车辆已经存在有效保单,保单号:114C1036420220004958保险起期是:2022-11-20 00:00:00保险止期是:2023-11-19 23:59:59产品名称:机动车综合商业保险(2020版)";
|
|
|
- String coverageEndDate = a.substring(a.indexOf("保险止期") + 6, a.indexOf("保险止期") + 6 + 16);
|
|
|
- System.out.println(coverageEndDate);
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* 报价 交强险 重复 投保业务处理
|
|
|
*/
|
|
|
@@ -379,6 +369,7 @@ public class YongchengOrderApiServiceImpl implements YongchengOrderApiService {
|
|
|
} else if (errorMsg.contains("保险止期")) {
|
|
|
coverageEndDate = ciMsg.substring(ciMsg.indexOf("保险止期") + 6, ciMsg.indexOf("保险止期") + 6 + 16);
|
|
|
}
|
|
|
+
|
|
|
if(StringUtils.isEmpty(coverageEndDate)){
|
|
|
throw new SystemException(ciMsg);
|
|
|
}
|