|
@@ -32,6 +32,8 @@ import com.ydtech.modules.order.entity.vo.FeeOrderNewRecordVo;
|
|
|
import com.ydtech.modules.order.entity.vo.FeeOrderNewVo;
|
|
import com.ydtech.modules.order.entity.vo.FeeOrderNewVo;
|
|
|
import com.ydtech.modules.order.service.InsAreaCompanyService;
|
|
import com.ydtech.modules.order.service.InsAreaCompanyService;
|
|
|
import com.ydtech.modules.order.service.InsOrdersService;
|
|
import com.ydtech.modules.order.service.InsOrdersService;
|
|
|
|
|
+import com.ydtech.modules.partner.model.vo.CommissionRulesVo;
|
|
|
|
|
+import com.ydtech.modules.partner.service.PartnerCommissionService;
|
|
|
import com.ydtech.modules.protocol.constants.ValidStatus;
|
|
import com.ydtech.modules.protocol.constants.ValidStatus;
|
|
|
import com.ydtech.modules.protocol.entity.po.PtlAgreement;
|
|
import com.ydtech.modules.protocol.entity.po.PtlAgreement;
|
|
|
import com.ydtech.modules.protocol.entity.po.PtlAreaLicense;
|
|
import com.ydtech.modules.protocol.entity.po.PtlAreaLicense;
|
|
@@ -112,6 +114,9 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private PtlAgreementAttributionService ptlAgreementAttributionService;
|
|
private PtlAgreementAttributionService ptlAgreementAttributionService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private PartnerCommissionService partnerCommissionService;
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public Page<PtlAgreementProductCostsNew> getProductPage(Page page, SysChannelGroupPageVo sysChannelGroupPageVo) {
|
|
public Page<PtlAgreementProductCostsNew> getProductPage(Page page, SysChannelGroupPageVo sysChannelGroupPageVo) {
|
|
|
Page<PtlAgreementProductCostsNew> selectPage = this.baseMapper.getProductPage(page, sysChannelGroupPageVo);
|
|
Page<PtlAgreementProductCostsNew> selectPage = this.baseMapper.getProductPage(page, sysChannelGroupPageVo);
|
|
@@ -1699,6 +1704,16 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ // 判断用户是否是新用户 如果是新用户则计算合伙人费用
|
|
|
|
|
+ BigDecimal partnerProportion = BigDecimal.ZERO;
|
|
|
|
|
+ if (sysUser.getNewApp() == 1){
|
|
|
|
|
+ CommissionRulesVo commissionRulesVo = partnerCommissionService.queryAll();
|
|
|
|
|
+ partnerProportion = partnerProportion.add(new BigDecimal(commissionRulesVo.getAdministrator().getFounderRatio()))
|
|
|
|
|
+ .add(new BigDecimal(commissionRulesVo.getAdministrator().getSharedRatio()))
|
|
|
|
|
+ .add(new BigDecimal(commissionRulesVo.getPartner().getSharedRatio()));
|
|
|
|
|
+ }
|
|
|
|
|
+ insFeeOrderNew.setPartnerProportion(partnerProportion);
|
|
|
|
|
+
|
|
|
List<FeeOrderNewVo.EntranceFee> entranceFeeList = new ArrayList<>();
|
|
List<FeeOrderNewVo.EntranceFee> entranceFeeList = new ArrayList<>();
|
|
|
List<FeeOrderNewVo.DeptManagerFee> deptManagerFeeList = new ArrayList<>();
|
|
List<FeeOrderNewVo.DeptManagerFee> deptManagerFeeList = new ArrayList<>();
|
|
|
List<FeeOrderNewVo.ExportFee> exportFeeList = new ArrayList<>();
|
|
List<FeeOrderNewVo.ExportFee> exportFeeList = new ArrayList<>();
|
|
@@ -1814,6 +1829,7 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
feeOrderNewVo.getEntranceFee().get(0).getTotalProportion(),
|
|
feeOrderNewVo.getEntranceFee().get(0).getTotalProportion(),
|
|
|
jqDeptProportion,
|
|
jqDeptProportion,
|
|
|
jqRetailProportion,
|
|
jqRetailProportion,
|
|
|
|
|
+ partnerProportion,
|
|
|
taxRadio,
|
|
taxRadio,
|
|
|
retailLevel,
|
|
retailLevel,
|
|
|
ptlAgreementProductCostsExport,
|
|
ptlAgreementProductCostsExport,
|
|
@@ -1825,6 +1841,7 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
feeOrderNewVo.getEntranceFee().get(1).getTotalProportion(),
|
|
feeOrderNewVo.getEntranceFee().get(1).getTotalProportion(),
|
|
|
syDeptProportion,
|
|
syDeptProportion,
|
|
|
syRetailProportion,
|
|
syRetailProportion,
|
|
|
|
|
+ partnerProportion,
|
|
|
taxRadio,
|
|
taxRadio,
|
|
|
retailLevel,
|
|
retailLevel,
|
|
|
ptlAgreementProductCostsExport,
|
|
ptlAgreementProductCostsExport,
|
|
@@ -1837,6 +1854,7 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
feeOrderNewVo.getEntranceFee().get(2).getTotalProportion(),
|
|
feeOrderNewVo.getEntranceFee().get(2).getTotalProportion(),
|
|
|
noDeptProportion,
|
|
noDeptProportion,
|
|
|
noRetailProportion,
|
|
noRetailProportion,
|
|
|
|
|
+ partnerProportion,
|
|
|
taxRadio,
|
|
taxRadio,
|
|
|
retailLevel,
|
|
retailLevel,
|
|
|
ptlAgreementProductCostsExport,
|
|
ptlAgreementProductCostsExport,
|
|
@@ -2022,6 +2040,7 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
jqDeptRadio,
|
|
jqDeptRadio,
|
|
|
jqRetailRadio,
|
|
jqRetailRadio,
|
|
|
taxRadio,
|
|
taxRadio,
|
|
|
|
|
+ partnerProportion,
|
|
|
jqReCalcuLateProportion.getProxyProportion()
|
|
jqReCalcuLateProportion.getProxyProportion()
|
|
|
);
|
|
);
|
|
|
|
|
|
|
@@ -2036,6 +2055,7 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
syDeptRadio,
|
|
syDeptRadio,
|
|
|
syRetailRadio,
|
|
syRetailRadio,
|
|
|
taxRadio,
|
|
taxRadio,
|
|
|
|
|
+ partnerProportion,
|
|
|
syReCalcuLateProportion.getProxyProportion()
|
|
syReCalcuLateProportion.getProxyProportion()
|
|
|
);
|
|
);
|
|
|
|
|
|
|
@@ -2051,6 +2071,7 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
noDeptRadio,
|
|
noDeptRadio,
|
|
|
noRetailRadio,
|
|
noRetailRadio,
|
|
|
taxRadio,
|
|
taxRadio,
|
|
|
|
|
+ partnerProportion,
|
|
|
noReCalcuLateProportion.getProxyProportion()
|
|
noReCalcuLateProportion.getProxyProportion()
|
|
|
);
|
|
);
|
|
|
|
|
|