|
|
@@ -1,6 +1,7 @@
|
|
|
package com.ydtech.modules.order.components.zhongmei;
|
|
|
|
|
|
|
|
|
+import com.ydtech.constants.InsuranceEnum;
|
|
|
import com.ydtech.constants.enums.InsuranceRisk;
|
|
|
import com.ydtech.modules.ins.model.vo.RiskInfoVo;
|
|
|
import com.ydtech.modules.order.components.ZhongmeiRequestApiComponents;
|
|
|
@@ -8,6 +9,7 @@ import com.ydtech.modules.order.entity.api.zhongmei.constants.TimeConstants;
|
|
|
import com.ydtech.modules.order.entity.api.zhongmei.request.QuotedPriceRequest;
|
|
|
import com.ydtech.modules.order.entity.api.zhongmei.response.QuotedPriceResponse;
|
|
|
import com.ydtech.modules.order.entity.vo.BaseQuoteInfoVo;
|
|
|
+import com.ydtech.modules.order.utils.InsuranceLog;
|
|
|
import com.ydtech.utils.DateTimeUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
@@ -36,7 +38,6 @@ public class ZhongmeiRepeatInsuranceComponents {
|
|
|
|
|
|
|
|
|
public QuotedPriceResponse dealRepeatDate(QuotedPriceRequest quotedPriceRequest, QuotedPriceResponse quotedPriceResponse, BaseQuoteInfoVo quoteInfo) {
|
|
|
- //InsuranceLog.infoLog(InsuranceEnum.ZMBX.getPinyin(), "\n\t---------> {}\n\t---------> {}", "中煤财险重复投保处理", quotedPriceResponse.getBizPlatformMsg().getAnswer());
|
|
|
String rtnMsgBz = "";
|
|
|
String rtnMsgBusi = "";
|
|
|
List<RiskInfoVo> riskList = quoteInfo.getRiskList();
|
|
|
@@ -46,6 +47,7 @@ public class ZhongmeiRepeatInsuranceComponents {
|
|
|
if(quotedPriceResponse.getBizPlatformMsg()!=null){
|
|
|
rtnMsgBusi = quotedPriceResponse.getBizPlatformMsg().getAnswer();
|
|
|
}
|
|
|
+ InsuranceLog.infoLog(InsuranceEnum.ZMBX.getPinyin(), "\n\t---------> {}\n\t---------> {}", "中煤财险重复投保处理", rtnMsgBz+rtnMsgBusi);
|
|
|
/* rtnMsgBz = "交强险平台返回:号牌号码“晋HQE092”的保单发生重复投保,与其重复投保的其它公司的保单信息如下:投保确认码 02CCIC140022102196416712744293;保单号 PDFA22140123250000001413;起保日期 2022-10-24 00:00;终保日期 2023-10-24 00:00;号牌号码 晋HQE092;号牌种类 02;车架号 LSGBC5356HG101426;发动机号 170971343;地区 山西。";
|
|
|
rtnMsgBusi = "平台校验:成功 投保查询码:V0101ZMBX140023092205710579353 平台校验,可能存在重复投保,请关注以下平台返回的信息。保单号:6605212022140193005587; 保险公司:中国人寿财产保险公司: 起保日期:2022-10-1600:00:00; 终保日期:2023-10-16; 录单日期:2022-09-15; 险种名称:机动车第三者责任保险: 号牌号码:晋A711BW; 号牌种类代码:02; 号牌底色:01; 车辆识别代号: LGWEF4A52HF424155; 发动机号:1725091016";
|
|
|
*/
|
|
|
@@ -100,7 +102,7 @@ public class ZhongmeiRepeatInsuranceComponents {
|
|
|
return zhongmeiRequestApiComponents.quotedPrice(quotedPriceRequest, QuotedPriceResponse.class);
|
|
|
}
|
|
|
public QuotedPriceResponse dealRepeatDateFormError(QuotedPriceRequest quotedPriceRequest, QuotedPriceResponse quotedPriceResponse, BaseQuoteInfoVo quoteInfo) {
|
|
|
- //InsuranceLog.infoLog(InsuranceEnum.ZMBX.getPinyin(), "\n\t---------> {}\n\t---------> {}", "中煤财险重复投保处理", quotedPriceResponse.getBizPlatformMsg().getAnswer());
|
|
|
+ InsuranceLog.infoLog(InsuranceEnum.ZMBX.getPinyin(), "\n\t---------> {}\n\t---------> {}", "中煤财险重复投保处理", quotedPriceResponse.getHead().getReturnMessage());
|
|
|
String rtnMsgBusi = quotedPriceResponse.getHead().getReturnMessage();
|
|
|
List<RiskInfoVo> riskList = quoteInfo.getRiskList();
|
|
|
/* rtnMsgBz = "交强险平台返回:号牌号码“晋HQE092”的保单发生重复投保,与其重复投保的其它公司的保单信息如下:投保确认码 02CCIC140022102196416712744293;保单号 PDFA22140123250000001413;起保日期 2022-10-24 00:00;终保日期 2023-10-24 00:00;号牌号码 晋HQE092;号牌种类 02;车架号 LSGBC5356HG101426;发动机号 170971343;地区 山西。";
|