|
|
@@ -1,5 +1,6 @@
|
|
|
package com.jzg.quotation.taishan.crawler.component;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.jzg.commons.exception.SystemException;
|
|
|
import com.jzg.commons.util.StringUtils;
|
|
|
import com.jzg.quotation.taishan.crawler.constant.enums.ResultEnum;
|
|
|
@@ -40,6 +41,7 @@ public class TaiShanDuplicateInsuranceComponents extends ResponseMessageAbstract
|
|
|
|
|
|
@Override
|
|
|
public TaiShanCrawlerQuotationResponse messageHandler(TaiShanCrawlerQuotationRequest request, TaiShanCrawlerQuotationResponse response, HttpHeaders headers, int repeatNumber) {
|
|
|
+ log.info("response参数的值:{}", JSON.toJSONString(response));
|
|
|
TaiShanCrawlerQuotationResponse.ResultDTO.ExceptionDTO exception = response.getResult().getException();
|
|
|
log.info("{}\n\t---------> {}", "泰山财险重复投保处理", exception.getMsg());
|
|
|
String errMsg = exception.getMsg();
|
|
|
@@ -63,7 +65,7 @@ public class TaiShanDuplicateInsuranceComponents extends ResponseMessageAbstract
|
|
|
lastEndDate = getTheExpiryDate(reMark, THE_SY_FIRST_REGEX);
|
|
|
|
|
|
}
|
|
|
- if(StringUtils.isBlank(lastEndDate)){
|
|
|
+ if(StringUtils.isNotBlank(lastEndDate)){
|
|
|
DateTimeFormatter formatter =
|
|
|
DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
|
|
LocalDateTime timeObj =
|
|
|
@@ -90,7 +92,7 @@ public class TaiShanDuplicateInsuranceComponents extends ResponseMessageAbstract
|
|
|
lastEndDate = getTheExpiryDate(reMark, THE_JQ_FIRST_REGEX);
|
|
|
|
|
|
}
|
|
|
- if(StringUtils.isBlank(lastEndDate)){
|
|
|
+ if(StringUtils.isNotBlank(lastEndDate)){
|
|
|
DateTimeFormatter formatter =
|
|
|
DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
|
|
LocalDateTime timeObj =
|