|
@@ -37,10 +37,7 @@ import com.ydtech.modules.order.entity.vo.AccidentalDrivingVo;
|
|
|
import com.ydtech.modules.order.entity.vo.BaseQuoteInfoVo;
|
|
import com.ydtech.modules.order.entity.vo.BaseQuoteInfoVo;
|
|
|
import com.ydtech.modules.order.entity.vo.BaseQuoteVo;
|
|
import com.ydtech.modules.order.entity.vo.BaseQuoteVo;
|
|
|
import com.ydtech.modules.order.entity.vo.PolicyPrintVo;
|
|
import com.ydtech.modules.order.entity.vo.PolicyPrintVo;
|
|
|
-import com.ydtech.modules.order.service.InsAreaCompanyService;
|
|
|
|
|
-import com.ydtech.modules.order.service.InsOrdersService;
|
|
|
|
|
-import com.ydtech.modules.order.service.InsTaskImagesService;
|
|
|
|
|
-import com.ydtech.modules.order.service.ZhongMeiOrderApiService;
|
|
|
|
|
|
|
+import com.ydtech.modules.order.service.*;
|
|
|
import com.ydtech.modules.protocol.entity.po.PtlAgreementAttribution;
|
|
import com.ydtech.modules.protocol.entity.po.PtlAgreementAttribution;
|
|
|
import com.ydtech.modules.protocol.service.PtlAgreementAttributionService;
|
|
import com.ydtech.modules.protocol.service.PtlAgreementAttributionService;
|
|
|
import com.ydtech.utils.CalculateUtils;
|
|
import com.ydtech.utils.CalculateUtils;
|
|
@@ -74,7 +71,12 @@ public class ZhongMeiOrderApiServiceImpl implements ZhongMeiOrderApiService {
|
|
|
|
|
|
|
|
private final FeeRuleSchemeService feeRuleSchemeService;
|
|
private final FeeRuleSchemeService feeRuleSchemeService;
|
|
|
|
|
|
|
|
- public ZhongMeiOrderApiServiceImpl(InsOrdersService insOrdersService, InsAreaCompanyService insAreaCompanyService, InsTaskImagesService insTaskImagesService, ZhongmeiRequestApiComponents zhongmeiRequestApiComponents, ZhongmeiRequestComponents zhongmeiRequestComponents, ConfigureParametersComponents configureParametersComponents, PtlAgreementAttributionService ptlAgreementAttributionService,FeeRuleSchemeService feeRuleSchemeService) {
|
|
|
|
|
|
|
+ private final InsAgreementOrderService insAgreementOrderService;
|
|
|
|
|
+
|
|
|
|
|
+ public ZhongMeiOrderApiServiceImpl(InsOrdersService insOrdersService, InsAreaCompanyService insAreaCompanyService, InsTaskImagesService insTaskImagesService,
|
|
|
|
|
+ ZhongmeiRequestApiComponents zhongmeiRequestApiComponents, ZhongmeiRequestComponents zhongmeiRequestComponents,
|
|
|
|
|
+ ConfigureParametersComponents configureParametersComponents, PtlAgreementAttributionService ptlAgreementAttributionService,
|
|
|
|
|
+ FeeRuleSchemeService feeRuleSchemeService,InsAgreementOrderService insAgreementOrderService) {
|
|
|
this.insOrdersService = insOrdersService;
|
|
this.insOrdersService = insOrdersService;
|
|
|
this.insAreaCompanyService = insAreaCompanyService;
|
|
this.insAreaCompanyService = insAreaCompanyService;
|
|
|
this.insTaskImagesService = insTaskImagesService;
|
|
this.insTaskImagesService = insTaskImagesService;
|
|
@@ -83,6 +85,7 @@ public class ZhongMeiOrderApiServiceImpl implements ZhongMeiOrderApiService {
|
|
|
this.configureParametersComponents = configureParametersComponents;
|
|
this.configureParametersComponents = configureParametersComponents;
|
|
|
this.ptlAgreementAttributionService = ptlAgreementAttributionService;
|
|
this.ptlAgreementAttributionService = ptlAgreementAttributionService;
|
|
|
this.feeRuleSchemeService = feeRuleSchemeService;
|
|
this.feeRuleSchemeService = feeRuleSchemeService;
|
|
|
|
|
+ this.insAgreementOrderService = insAgreementOrderService;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void modelInquiry(String modelName, List<ModelsQueryResponse.SimpleStadarCarDTO> simpleStadarCarDTOS) {
|
|
private void modelInquiry(String modelName, List<ModelsQueryResponse.SimpleStadarCarDTO> simpleStadarCarDTOS) {
|
|
@@ -151,10 +154,14 @@ public class ZhongMeiOrderApiServiceImpl implements ZhongMeiOrderApiService {
|
|
|
QuoteRespVo quoteRespVo = getQuoteRespVo(quotedPriceResponse, quoteInfo);
|
|
QuoteRespVo quoteRespVo = getQuoteRespVo(quotedPriceResponse, quoteInfo);
|
|
|
|
|
|
|
|
//这里调用费用匹配功能
|
|
//这里调用费用匹配功能
|
|
|
- //InsOrders insOrders = insOrdersService.getById(quoteRespVo.getOrderno());
|
|
|
|
|
- //FeeSchemeReqDto feeSchemeReqDto = feeRuleSchemeService.getFeeSchemeInfo(quoteInfo,quoteRespVo,ptlAgreementAttribution.getId(),insOrders.getProductid());
|
|
|
|
|
- //FeeSchemeResDto feeSchemeResDto = feeRuleSchemeService.matchTheAppropriateFees(feeSchemeReqDto);
|
|
|
|
|
- //InsAgreementOrder insAgreementOrder = new InsAgreementOrder(feeSchemeReqDto,feeSchemeResDto,quotedPriceResponse.getBusinessNo());
|
|
|
|
|
|
|
+ /*InsOrders insOrders = insOrdersService.getById(quoteRespVo.getOrderno());
|
|
|
|
|
+ FeeSchemeReqDto feeSchemeReqDto = feeRuleSchemeService.getFeeSchemeInfo(quoteInfo,quoteRespVo,ptlAgreementAttribution.getId(),insOrders.getProductid());
|
|
|
|
|
+ // FeeSchemeResDto feeSchemeResDto = feeRuleSchemeService.matchTheAppropriateFees(feeSchemeReqDto);
|
|
|
|
|
+ FeeSchemeResDto feeSchemeResDto = new FeeSchemeResDto();
|
|
|
|
|
+ feeSchemeResDto.setJqCostsProportion("50");
|
|
|
|
|
+ feeSchemeResDto.setSyCostsProportion("55");
|
|
|
|
|
+ InsAgreementOrder insAgreementOrder = new InsAgreementOrder(feeSchemeReqDto,feeSchemeResDto,quotedPriceResponse.getBusinessNo());
|
|
|
|
|
+ insAgreementOrderService.insertCompanyAndOrders(insAgreementOrder);*/
|
|
|
return responseOrder(quotedPriceResponse, quoteRespVo, ptlAgreementAttribution);
|
|
return responseOrder(quotedPriceResponse, quoteRespVo, ptlAgreementAttribution);
|
|
|
}
|
|
}
|
|
|
|
|
|