|
@@ -71,6 +71,8 @@ import com.ydtech.modules.order.entity.vo.*;
|
|
|
import com.ydtech.modules.order.service.*;
|
|
import com.ydtech.modules.order.service.*;
|
|
|
import com.ydtech.modules.order.utils.InsuranceLog;
|
|
import com.ydtech.modules.order.utils.InsuranceLog;
|
|
|
import com.ydtech.modules.protocol.entity.constants.PtlApiType;
|
|
import com.ydtech.modules.protocol.entity.constants.PtlApiType;
|
|
|
|
|
+import com.ydtech.modules.protocol.entity.po.PtlAgreementAttribution;
|
|
|
|
|
+import com.ydtech.modules.protocol.service.PtlAgreementAttributionService;
|
|
|
import com.ydtech.modules.protocol.utils.AssertionUtils;
|
|
import com.ydtech.modules.protocol.utils.AssertionUtils;
|
|
|
import com.ydtech.utils.DateTimeUtil;
|
|
import com.ydtech.utils.DateTimeUtil;
|
|
|
import com.ydtech.utils.StringUtils;
|
|
import com.ydtech.utils.StringUtils;
|
|
@@ -166,6 +168,9 @@ public class YongchengOrderApiServiceImpl implements YongchengOrderApiService {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private InsSubOrderUpdateDetailService insSubOrderUpdateDetailService;
|
|
private InsSubOrderUpdateDetailService insSubOrderUpdateDetailService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private PtlAgreementAttributionService ptlAgreementAttributionService;
|
|
|
|
|
+
|
|
|
public void gainVehicleModel(YcConfigureParameters ycConfigureParameters, CarInfoVo carInfo, CoreModelsVo coreModelsVo) {
|
|
public void gainVehicleModel(YcConfigureParameters ycConfigureParameters, CarInfoVo carInfo, CoreModelsVo coreModelsVo) {
|
|
|
CarModel_Req carModelReq = new CarModel_Req();
|
|
CarModel_Req carModelReq = new CarModel_Req();
|
|
|
carModelReq.setFrameNo(carInfo.getFrameNo());
|
|
carModelReq.setFrameNo(carInfo.getFrameNo());
|
|
@@ -318,9 +323,7 @@ public class YongchengOrderApiServiceImpl implements YongchengOrderApiService {
|
|
|
//1、商业险重复投保处理
|
|
//1、商业险重复投保处理
|
|
|
String sy = commerceRepetitionInsure(rr, m, requestInfoList, appSYFlag);
|
|
String sy = commerceRepetitionInsure(rr, m, requestInfoList, appSYFlag);
|
|
|
|
|
|
|
|
- if (jq.isEmpty() && sy.isEmpty()) {
|
|
|
|
|
- throw new SystemException(errorMsg);
|
|
|
|
|
- } else {
|
|
|
|
|
|
|
+ if (!jq.isEmpty() || !sy.isEmpty()) {
|
|
|
InsuranceLog.infoLog(InsuranceEnum.AICS.getPinyin(), "\n\n---------> {} - 重复投保处理", vinNo);
|
|
InsuranceLog.infoLog(InsuranceEnum.AICS.getPinyin(), "\n\n---------> {} - 重复投保处理", vinNo);
|
|
|
return this.getResponse(m, vinNo, requestInfoList, yaQuoteInfoVo);
|
|
return this.getResponse(m, vinNo, requestInfoList, yaQuoteInfoVo);
|
|
|
}
|
|
}
|
|
@@ -403,14 +406,22 @@ public class YongchengOrderApiServiceImpl implements YongchengOrderApiService {
|
|
|
throw new SystemException(errorInfo.toString());
|
|
throw new SystemException(errorInfo.toString());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ //查询订单信息
|
|
|
|
|
+ InsOrders order = insOrdersService.getById(yaQuoteInfoVo.getOrderNo());
|
|
|
|
|
+
|
|
|
//报价失败
|
|
//报价失败
|
|
|
if (!"000000".equals(rr.getHead().getErrorCode())) {
|
|
if (!"000000".equals(rr.getHead().getErrorCode())) {
|
|
|
|
|
+ //保存报价失败的子订单
|
|
|
|
|
+ InsOrderStatusEnum insOrderStatusEnum = InsOrderStatusEnum.QUOTE_FAILED;
|
|
|
|
|
+ if(rr.getHead().getErrorMessage().contains("重复投保"))
|
|
|
|
|
+ {
|
|
|
|
|
+ insOrderStatusEnum = InsOrderStatusEnum.REPEAT_INSURE;
|
|
|
|
|
+ }
|
|
|
|
|
+ PtlAgreementAttribution ptlAgreementAttribution = ptlAgreementAttributionService.getById(quoteVo.getAgreementId());
|
|
|
|
|
+ insOrdersService.responseFailedOrder(quoteVo,ptlAgreementAttribution, order,rr.getHead().getErrorMessage(),insOrderStatusEnum);
|
|
|
return HttpResult.error(rr.getHead().getErrorMessage());
|
|
return HttpResult.error(rr.getHead().getErrorMessage());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- //查询订单信息
|
|
|
|
|
- InsOrders order = insOrdersService.getById(yaQuoteInfoVo.getOrderNo());
|
|
|
|
|
-
|
|
|
|
|
QuoteRespVo quoteRespVo = YcBuildData.buildQuoteRespVo(order, rr, yaQuoteInfoVo);
|
|
QuoteRespVo quoteRespVo = YcBuildData.buildQuoteRespVo(order, rr, yaQuoteInfoVo);
|
|
|
//8 生成订单
|
|
//8 生成订单
|
|
|
InsAreaCompany iac = responseOrder(order, quoteRespVo, rr, quoteVo);
|
|
InsAreaCompany iac = responseOrder(order, quoteRespVo, rr, quoteVo);
|