|
@@ -16,7 +16,8 @@ import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.http.HttpHeaders;
|
|
import org.springframework.http.HttpHeaders;
|
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
-import java.util.Optional;
|
|
|
|
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
|
|
+import java.util.Date;
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -56,7 +57,6 @@ public class ZijinDuplicateInsuranceComponents extends ResponseMessageAbstractHa
|
|
|
boolean retry) {
|
|
boolean retry) {
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
InsuranceLog.infoLog(InsuranceEnum.ZKIC.getPinyin(), "\n\t---------> {}\n\t---------> {}", "紫金财险重复投保处理",
|
|
InsuranceLog.infoLog(InsuranceEnum.ZKIC.getPinyin(), "\n\t---------> {}\n\t---------> {}", "紫金财险重复投保处理",
|
|
|
calculatePremiumResponse.getRtnMsg());
|
|
calculatePremiumResponse.getRtnMsg());
|
|
|
String rtnMsg = calculatePremiumResponse.getRtnMsg();
|
|
String rtnMsg = calculatePremiumResponse.getRtnMsg();
|
|
@@ -81,6 +81,20 @@ public class ZijinDuplicateInsuranceComponents extends ResponseMessageAbstractHa
|
|
|
// 商业险
|
|
// 商业险
|
|
|
if (rtnMsg.contains(SY)) {
|
|
if (rtnMsg.contains(SY)) {
|
|
|
syEndDate = GuorenDuplicateInsuranceComponent.getEndDate(rtnMsg, SY_REGEX);
|
|
syEndDate = GuorenDuplicateInsuranceComponent.getEndDate(rtnMsg, SY_REGEX);
|
|
|
|
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
+ try {
|
|
|
|
|
+ Date parse = simpleDateFormat.parse(syEndDate);
|
|
|
|
|
+ Date date = new Date();
|
|
|
|
|
+ if (date.after(parse)) {
|
|
|
|
|
+ syEndDate = "";
|
|
|
|
|
+ if(jqEndDate.isEmpty()){
|
|
|
|
|
+ return calculatePremiumResponse;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ } catch (Exception ignored) {
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (jqEndDate.isEmpty() && syEndDate.isEmpty()) {
|
|
if (jqEndDate.isEmpty() && syEndDate.isEmpty()) {
|