|
|
@@ -2793,7 +2793,7 @@ public class FeeRuleSchemeServiceNewImpl implements FeeRuleSchemeNewService {
|
|
|
//获取所有费用属性
|
|
|
List<PtlAgreementUndwrtRulesAttr> undwrtRulesAttrList = ptlAgreementUndwrtRulesAttrService.getUndwrtRulesAttrList();
|
|
|
//获取新旧车信息
|
|
|
- PtlNewCarJudgeRules carJudgeRule = getCarJudgeRule(insAreaCompany.getCompanyId());
|
|
|
+ PtlNewCarJudgeRules carJudgeRule = getCarJudgeRule(insAreaCompany.getCompanyId(), insOrders.getCarinfo().getString("cimodelclass"));
|
|
|
//获取所有费用属性关联
|
|
|
List<RuleAttrMappingVo> ruleAttrMappingVoList = RuleAttrMappingVo.getRuleAttrMappingVoList(quoteRespVo, insAreaCompany, insOrders,
|
|
|
undwrtRulesAttrList, carJudgeRule);
|
|
|
@@ -2826,7 +2826,7 @@ public class FeeRuleSchemeServiceNewImpl implements FeeRuleSchemeNewService {
|
|
|
List<PtlAgreementUndwrtRulesAttr> undwrtRulesAttrList = ptlAgreementUndwrtRulesAttrService.getUndwrtRulesAttrList();
|
|
|
//获取所有费用属性关联
|
|
|
List<RuleAttrMappingVo> ruleAttrMappingVoList = RuleAttrMappingVo.getRuleAttrMappingVoList(null,insAreaCompany, insOrders,
|
|
|
- undwrtRulesAttrList, getCarJudgeRule(insAreaCompany.getCompanyId()));
|
|
|
+ undwrtRulesAttrList, getCarJudgeRule(insAreaCompany.getCompanyId(),insOrders.getCarinfo().getString("cimodelclass")));
|
|
|
|
|
|
|
|
|
for (int i = 0; i < ptlAgreementUndwrtRulesNews.size(); i++) {
|
|
|
@@ -3524,11 +3524,12 @@ public class FeeRuleSchemeServiceNewImpl implements FeeRuleSchemeNewService {
|
|
|
* @param companyId
|
|
|
* @return
|
|
|
*/
|
|
|
- private PtlNewCarJudgeRules getCarJudgeRule(String companyId) {
|
|
|
+ private PtlNewCarJudgeRules getCarJudgeRule(String companyId, String vehicleType) {
|
|
|
//获取车辆新旧车信息
|
|
|
List<PtlNewCarJudgeRules> list =
|
|
|
ptlNewCarJudgeRulesService.list(new LambdaQueryWrapper<PtlNewCarJudgeRules>()
|
|
|
- .eq(PtlNewCarJudgeRules::getCompanyId,companyId));
|
|
|
+ .eq(PtlNewCarJudgeRules::getCompanyId,companyId)
|
|
|
+ .eq(PtlNewCarJudgeRules::getVehicleType,vehicleType));
|
|
|
if (list.size() > 0) {
|
|
|
return list.get(0);
|
|
|
}
|