|
|
@@ -19,8 +19,8 @@ import com.ydtech.modules.order.components.ConfigureParametersComponents;
|
|
|
import com.ydtech.modules.order.components.ZhongmeiRequestApiComponents;
|
|
|
import com.ydtech.modules.order.constants.InsuranceTypeCorrespondence;
|
|
|
import com.ydtech.modules.order.convert.SimpleStadarCarDTOConvert;
|
|
|
-import com.ydtech.modules.order.entity.InsAgreementOrder;
|
|
|
import com.ydtech.modules.order.entity.InsAreaCompany;
|
|
|
+import com.ydtech.modules.order.entity.InsFeeOrder;
|
|
|
import com.ydtech.modules.order.entity.InsOrders;
|
|
|
import com.ydtech.modules.order.entity.TaxArrears;
|
|
|
import com.ydtech.modules.order.entity.api.zm.BaseRequestHead;
|
|
|
@@ -42,7 +42,6 @@ import com.ydtech.modules.protocol.entity.po.PtlAgreementAttribution;
|
|
|
import com.ydtech.modules.protocol.service.PtlAgreementAttributionService;
|
|
|
import com.ydtech.utils.CalculateUtils;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.core.ParameterizedTypeReference;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.ObjectUtils;
|
|
|
@@ -71,12 +70,12 @@ public class ZhongMeiOrderApiServiceImpl implements ZhongMeiOrderApiService {
|
|
|
|
|
|
private final FeeRuleSchemeService feeRuleSchemeService;
|
|
|
|
|
|
- private final InsAgreementOrderService insAgreementOrderService;
|
|
|
+ private final InsFeeOrderService insFeeOrderService;
|
|
|
|
|
|
public ZhongMeiOrderApiServiceImpl(InsOrdersService insOrdersService, InsAreaCompanyService insAreaCompanyService, InsTaskImagesService insTaskImagesService,
|
|
|
ZhongmeiRequestApiComponents zhongmeiRequestApiComponents, ZhongmeiRequestComponents zhongmeiRequestComponents,
|
|
|
ConfigureParametersComponents configureParametersComponents, PtlAgreementAttributionService ptlAgreementAttributionService,
|
|
|
- FeeRuleSchemeService feeRuleSchemeService,InsAgreementOrderService insAgreementOrderService) {
|
|
|
+ FeeRuleSchemeService feeRuleSchemeService, InsFeeOrderService insFeeOrderService) {
|
|
|
this.insOrdersService = insOrdersService;
|
|
|
this.insAreaCompanyService = insAreaCompanyService;
|
|
|
this.insTaskImagesService = insTaskImagesService;
|
|
|
@@ -85,7 +84,7 @@ public class ZhongMeiOrderApiServiceImpl implements ZhongMeiOrderApiService {
|
|
|
this.configureParametersComponents = configureParametersComponents;
|
|
|
this.ptlAgreementAttributionService = ptlAgreementAttributionService;
|
|
|
this.feeRuleSchemeService = feeRuleSchemeService;
|
|
|
- this.insAgreementOrderService = insAgreementOrderService;
|
|
|
+ this.insFeeOrderService = insFeeOrderService;
|
|
|
}
|
|
|
|
|
|
private void modelInquiry(String modelName, List<ModelsQueryResponse.SimpleStadarCarDTO> simpleStadarCarDTOS) {
|
|
|
@@ -154,14 +153,14 @@ public class ZhongMeiOrderApiServiceImpl implements ZhongMeiOrderApiService {
|
|
|
QuoteRespVo quoteRespVo = getQuoteRespVo(quotedPriceResponse, quoteInfo);
|
|
|
|
|
|
//这里调用费用匹配功能
|
|
|
- /*InsOrders insOrders = insOrdersService.getById(quoteRespVo.getOrderno());
|
|
|
+ /* 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);*/
|
|
|
+ InsFeeOrder insFeeOrder = new InsFeeOrder(feeSchemeReqDto,feeSchemeResDto,quotedPriceResponse.getBusinessNo());
|
|
|
+ insFeeOrderService.insertCompanyAndOrders(insFeeOrder);*/
|
|
|
return responseOrder(quotedPriceResponse, quoteRespVo, ptlAgreementAttribution);
|
|
|
}
|
|
|
|