|
@@ -243,6 +243,21 @@ public class QuoteVerificationAspect {
|
|
|
PtlAgreementCostTypeVo syCostType = getCostTypeByTypeName(costTypeList, "商业险");
|
|
PtlAgreementCostTypeVo syCostType = getCostTypeByTypeName(costTypeList, "商业险");
|
|
|
PtlAgreementCostTypeVo jyCostType = getCostTypeByTypeName(costTypeList, "驾意险");
|
|
PtlAgreementCostTypeVo jyCostType = getCostTypeByTypeName(costTypeList, "驾意险");
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ // add by lipf, 2026年6月23日18:32:24 按照财务和田智沟通后的结果,当入口手续费比例大于入口比例的时候,强制设置入口手续费比例为入口比例。
|
|
|
|
|
+ BigDecimal jqInlet = BigDecimalUtil.divide(jqCostType.getInlet(), new BigDecimal(100));
|
|
|
|
|
+ if(BigDecimalUtil.subtract(jqEntranceFeeRatio,jqInlet).compareTo(BigDecimal.ZERO) >0){
|
|
|
|
|
+ jqEntranceFeeRatio = jqInlet;
|
|
|
|
|
+ }
|
|
|
|
|
+ BigDecimal syInlet = BigDecimalUtil.divide(syCostType.getInlet(), new BigDecimal(100));
|
|
|
|
|
+ if(BigDecimalUtil.subtract(syEntranceFeeRatio,syInlet).compareTo(BigDecimal.ZERO) >0){
|
|
|
|
|
+ syEntranceFeeRatio = syInlet;
|
|
|
|
|
+ }
|
|
|
|
|
+ BigDecimal jyInlet = BigDecimalUtil.divide(jqCostType.getInlet(), new BigDecimal(100));
|
|
|
|
|
+ if(BigDecimalUtil.subtract(jyEntranceFeeRatio,jyInlet).compareTo(BigDecimal.ZERO) >0){
|
|
|
|
|
+ jyEntranceFeeRatio = jyInlet;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// 4. 计算跟单费比例(入口比例 - 手续费比例)
|
|
// 4. 计算跟单费比例(入口比例 - 手续费比例)
|
|
|
BigDecimal jqFollowRatio = calculateFollowRatio(jqCostType, jqEntranceFeeRatio);
|
|
BigDecimal jqFollowRatio = calculateFollowRatio(jqCostType, jqEntranceFeeRatio);
|
|
|
BigDecimal syFollowRatio = calculateFollowRatio(syCostType, syEntranceFeeRatio);
|
|
BigDecimal syFollowRatio = calculateFollowRatio(syCostType, syEntranceFeeRatio);
|