Commit 45a0ae29 by hongzhong

202201:薪资单:calculation_amount 匹配佣奖率的金额

parent 2a196a0a
...@@ -1184,6 +1184,7 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe ...@@ -1184,6 +1184,7 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
commission.setCalculationFormula(withdrawLabelInfo.getCalculationFormula());//佣金计算公式 commission.setCalculationFormula(withdrawLabelInfo.getCalculationFormula());//佣金计算公式
commission.setSalestaff(withdrawLabelInfo.getPractitionerName());//经纪人名称 commission.setSalestaff(withdrawLabelInfo.getPractitionerName());//经纪人名称
commission.setSalaryCode(transformationType(withdrawLabelInfo.getDropOptionCode())); commission.setSalaryCode(transformationType(withdrawLabelInfo.getDropOptionCode()));
commission.setCalculationAmount(withdrawLabelInfo.getCalculationAmount().doubleValue());
//C02:续年度直接销售佣金;C03:续年度销售加码奖金;C04:月度销售加码奖金; 没有orderid //C02:续年度直接销售佣金;C03:续年度销售加码奖金;C04:月度销售加码奖金; 没有orderid
if ("C02".equals(withdrawLabelInfo.getDropOptionCode())) { if ("C02".equals(withdrawLabelInfo.getDropOptionCode())) {
c02List.add(commission); c02List.add(commission);
...@@ -1235,6 +1236,7 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe ...@@ -1235,6 +1236,7 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
renewalYearPerformanceCommission.setPolicyno(withdrawLabelInfo.getPolicyNo());//保单号 renewalYearPerformanceCommission.setPolicyno(withdrawLabelInfo.getPolicyNo());//保单号
renewalYearPerformanceCommission.setSalestaff(withdrawLabelInfo.getPractitionerName());//经纪人名称 renewalYearPerformanceCommission.setSalestaff(withdrawLabelInfo.getPractitionerName());//经纪人名称
renewalYearPerformanceCommission.setYearPREMIUM(withdrawLabelInfo.getOrderPrice().intValue());//保费 renewalYearPerformanceCommission.setYearPREMIUM(withdrawLabelInfo.getOrderPrice().intValue());//保费
renewalYearPerformanceCommission.setCalculationAmount(withdrawLabelInfo.getCalculationAmount().doubleValue());
if ("C06".equals(withdrawLabelInfo.getDropOptionCode())) { if ("C06".equals(withdrawLabelInfo.getDropOptionCode())) {
......
...@@ -154,7 +154,10 @@ public class WithdrawLabelInfo { ...@@ -154,7 +154,10 @@ public class WithdrawLabelInfo {
*计算公式拆分出来的rate *计算公式拆分出来的rate
*/ */
private BigDecimal calculationRate; private BigDecimal calculationRate;
/**
*匹配佣奖率的金额
*/
private BigDecimal calculationAmount;
} }
......
...@@ -36,6 +36,9 @@ public class Commission { ...@@ -36,6 +36,9 @@ public class Commission {
private String calculationFormula; private String calculationFormula;
private String salaryCode; private String salaryCode;
private double calculationAmount;
public Commission() { public Commission() {
} }
...@@ -180,4 +183,12 @@ public class Commission { ...@@ -180,4 +183,12 @@ public class Commission {
public void setSalaryCode(String salaryCode) { public void setSalaryCode(String salaryCode) {
this.salaryCode = salaryCode; this.salaryCode = salaryCode;
} }
public double getCalculationAmount() {
return calculationAmount;
}
public void setCalculationAmount(double calculationAmount) {
this.calculationAmount = calculationAmount;
}
} }
...@@ -2,6 +2,8 @@ package com.yd.rmi.n22.salary.pojo.searchstaffsalarydetails; ...@@ -2,6 +2,8 @@ package com.yd.rmi.n22.salary.pojo.searchstaffsalarydetails;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
public class RenewalYearPerformanceCommission { public class RenewalYearPerformanceCommission {
private String SaleSystem; private String SaleSystem;
private String FYC_RYC; private String FYC_RYC;
...@@ -16,6 +18,10 @@ public class RenewalYearPerformanceCommission { ...@@ -16,6 +18,10 @@ public class RenewalYearPerformanceCommission {
private int YearPREMIUM;//保费 private int YearPREMIUM;//保费
private String Salestaff;//经纪人 private String Salestaff;//经纪人
/** /**
*匹配佣奖率的金额
*/
private Double calculationAmount;
/**
*薪资类型code *薪资类型code
*/ */
private String salaryCode; private String salaryCode;
...@@ -133,4 +139,12 @@ public class RenewalYearPerformanceCommission { ...@@ -133,4 +139,12 @@ public class RenewalYearPerformanceCommission {
public void setSalestaff(String salestaff) { public void setSalestaff(String salestaff) {
Salestaff = salestaff; Salestaff = salestaff;
} }
public Double getCalculationAmount() {
return calculationAmount;
}
public void setCalculationAmount(Double calculationAmount) {
this.calculationAmount = calculationAmount;
}
} }
...@@ -297,6 +297,9 @@ ...@@ -297,6 +297,9 @@
<result column="commissionType" jdbcType="VARCHAR" property="commissionType"/> <result column="commissionType" jdbcType="VARCHAR" property="commissionType"/>
<result column="calculationFormula" jdbcType="VARCHAR" property="calculationFormula"/> <result column="calculationFormula" jdbcType="VARCHAR" property="calculationFormula"/>
<result column="calculationRate" jdbcType="DECIMAL" property="calculationRate" /> <result column="calculationRate" jdbcType="DECIMAL" property="calculationRate" />
<result column="calculationAmount" jdbcType="DECIMAL" property="calculationAmount" />
</resultMap> </resultMap>
<select id="transformForWithdrawLabel" <select id="transformForWithdrawLabel"
parameterType="com.yd.dal.entity.agms.fortune.WithdrawQueryInfo" parameterType="com.yd.dal.entity.agms.fortune.WithdrawQueryInfo"
...@@ -385,7 +388,10 @@ ...@@ -385,7 +388,10 @@
if(f.referral_amount is null,0,f.referral_amount) referralAmount, if(f.referral_amount is null,0,f.referral_amount) referralAmount,
f.calculation_formula calculationFormula, f.calculation_formula calculationFormula,
f.withdrawed_id withdrawId, f.withdrawed_id withdrawId,
if(f.calculation_rate is null,0,f.calculation_rate) calculationRate if(f.calculation_rate is null,0,f.calculation_rate) calculationRate,
if(f.calculation_amount is null,0,f.calculation_amount) calculationAmount
from ag_acl_customer_fortune f from ag_acl_customer_fortune f
left join ag_po_order o on o.id = f.order_id left join ag_po_order o on o.id = f.order_id
left join ag_product_plan pp on pp.id = o.plan_id left join ag_product_plan pp on pp.id = o.plan_id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment