|
|
@@ -2,10 +2,7 @@ package com.ydtech.modules.fee.service.impl;
|
|
|
|
|
|
import com.ydtech.exception.SystemException;
|
|
|
import com.ydtech.modules.admin.model.SysUser;
|
|
|
-import com.ydtech.modules.admin.service.SysDeptService;
|
|
|
import com.ydtech.modules.admin.service.SysUserService;
|
|
|
-import com.ydtech.modules.esm.service.EsmRetailService;
|
|
|
-import com.ydtech.modules.esm.service.EsmUserReferrerService;
|
|
|
import com.ydtech.modules.fee.dto.FeeFactorInfoDto;
|
|
|
import com.ydtech.modules.fee.dto.FeeSchemeReqDto;
|
|
|
import com.ydtech.modules.fee.dto.FeeSchemeResDto;
|
|
|
@@ -16,10 +13,8 @@ import com.ydtech.modules.ins.model.vo.QuoteRespVo;
|
|
|
import com.ydtech.modules.order.entity.InsCopyFeeOrder;
|
|
|
import com.ydtech.modules.order.entity.InsFeeOrder;
|
|
|
import com.ydtech.modules.order.entity.vo.*;
|
|
|
-import com.ydtech.modules.order.service.InsAreaCompanyService;
|
|
|
import com.ydtech.modules.order.service.InsCopyFeeOrderService;
|
|
|
import com.ydtech.modules.order.service.InsFeeOrderService;
|
|
|
-import com.ydtech.modules.order.service.InsOrdersService;
|
|
|
import com.ydtech.modules.protocol.entity.po.*;
|
|
|
import com.ydtech.modules.protocol.service.*;
|
|
|
import com.ydtech.modules.protocols.entity.po.InsFeeOrderNew;
|
|
|
@@ -2728,7 +2723,7 @@ public class FeeRuleSchemeServiceImpl implements FeeRuleSchemeService {
|
|
|
entranceFee.setOtherCostsProportion(otherCostsProportion);
|
|
|
//总费用比例
|
|
|
BigDecimal totalCostsProportion = superviseCostsProportion.add(otherCostsProportion);
|
|
|
- entranceFee.setTotalAmount(premium.multiply(totalCostsProportion.divide(new BigDecimal(100))).setScale(5,BigDecimal.ROUND_DOWN));
|
|
|
+ entranceFee.setTotalAmount(entranceFee.getSuperviseCostsPremiums().add(entranceFee.getOtherCostsPremiums()));
|
|
|
entranceFee.setTotalProportion(totalCostsProportion);
|
|
|
return entranceFee;
|
|
|
}
|
|
|
@@ -2747,19 +2742,19 @@ public class FeeRuleSchemeServiceImpl implements FeeRuleSchemeService {
|
|
|
BigDecimal level3Proportion,BigDecimal level4Proportion,BigDecimal level5Proportion){
|
|
|
FeeOrderNewVo.DeptManagerFee deptManagerFee = new FeeOrderNewVo.DeptManagerFee();
|
|
|
//一级管理费
|
|
|
- deptManagerFee.setDeptPremiumsLevelOne(premium.multiply(level1Proportion.divide(new BigDecimal(100))).setScale(5,BigDecimal.ROUND_DOWN));
|
|
|
+ deptManagerFee.setDeptPremiumsLevelOne(premium.multiply(level1Proportion.divide(new BigDecimal(100))).setScale(2,BigDecimal.ROUND_DOWN));
|
|
|
deptManagerFee.setDeptProportionLevelOne(level1Proportion);
|
|
|
//二级管理费
|
|
|
- deptManagerFee.setDeptPremiumsLevelTwo(premium.multiply(level2Proportion.divide(new BigDecimal(100))).setScale(5,BigDecimal.ROUND_DOWN));
|
|
|
+ deptManagerFee.setDeptPremiumsLevelTwo(premium.multiply(level2Proportion.divide(new BigDecimal(100))).setScale(2,BigDecimal.ROUND_DOWN));
|
|
|
deptManagerFee.setDeptProportionLevelTwo(level2Proportion);
|
|
|
//三级管理费
|
|
|
- deptManagerFee.setDeptPremiumsLevelThree(premium.multiply(level3Proportion.divide(new BigDecimal(100))).setScale(5,BigDecimal.ROUND_DOWN));
|
|
|
+ deptManagerFee.setDeptPremiumsLevelThree(premium.multiply(level3Proportion.divide(new BigDecimal(100))).setScale(2,BigDecimal.ROUND_DOWN));
|
|
|
deptManagerFee.setDeptProportionLevelThree(level3Proportion);
|
|
|
//四级管理费
|
|
|
- deptManagerFee.setDeptPremiumsLevelFoure(premium.multiply(level4Proportion.divide(new BigDecimal(100))).setScale(5,BigDecimal.ROUND_DOWN));
|
|
|
+ deptManagerFee.setDeptPremiumsLevelFoure(premium.multiply(level4Proportion.divide(new BigDecimal(100))).setScale(2,BigDecimal.ROUND_DOWN));
|
|
|
deptManagerFee.setDeptProportionLevelFoure(level4Proportion);
|
|
|
//五级管理费
|
|
|
- deptManagerFee.setDeptPremiumsLevelFive(premium.multiply(level5Proportion.divide(new BigDecimal(100))).setScale(5,BigDecimal.ROUND_DOWN));
|
|
|
+ deptManagerFee.setDeptPremiumsLevelFive(premium.multiply(level5Proportion.divide(new BigDecimal(100))).setScale(2,BigDecimal.ROUND_DOWN));
|
|
|
deptManagerFee.setDeptProportionLevelFive(level5Proportion);
|
|
|
return deptManagerFee;
|
|
|
}
|
|
|
@@ -2797,9 +2792,9 @@ public class FeeRuleSchemeServiceImpl implements FeeRuleSchemeService {
|
|
|
exportFee.setOtherCostsProportion(exportTotalProportion.subtract(superviseCostsProportion));
|
|
|
exportFee.setSuperviseCosts(superviseCostsProportion);
|
|
|
}
|
|
|
- exportFee.setSuperviseCostsPremiums(premium.multiply(exportFee.getSuperviseCosts().divide(new BigDecimal(100))).setScale(5,BigDecimal.ROUND_DOWN));
|
|
|
- exportFee.setOtherCostsPremiums(premium.multiply(exportFee.getOtherCostsProportion().divide(new BigDecimal(100))).setScale(5,BigDecimal.ROUND_DOWN));
|
|
|
- exportFee.setTotalAmount(premium.multiply(exportFee.getTotalProportion().divide(new BigDecimal(100))).setScale(5,BigDecimal.ROUND_DOWN));
|
|
|
+ exportFee.setSuperviseCostsPremiums(premium.multiply(exportFee.getSuperviseCosts().divide(new BigDecimal(100))).setScale(2,BigDecimal.ROUND_DOWN));
|
|
|
+ exportFee.setOtherCostsPremiums(premium.multiply(exportFee.getOtherCostsProportion().divide(new BigDecimal(100))).setScale(2,BigDecimal.ROUND_DOWN));
|
|
|
+ exportFee.setTotalAmount(premium.multiply(exportFee.getTotalProportion().divide(new BigDecimal(100))).setScale(2,BigDecimal.ROUND_DOWN));
|
|
|
|
|
|
return exportFee;
|
|
|
}
|