|
|
|
@ -22,6 +22,7 @@ public class CityPartnerCommissionAnalysis {
|
|
|
|
|
private BigDecimal rate;
|
|
|
|
|
private BigDecimal orgRate;
|
|
|
|
|
private String channel;
|
|
|
|
|
private int commissionType;
|
|
|
|
|
private Map<Integer, List<JSONObject>> clientAnalysis = new HashMap<>();
|
|
|
|
|
private BigDecimal totalGrossAmount = BigDecimal.ZERO;
|
|
|
|
|
private BigDecimal totalChargeSum = BigDecimal.ZERO;
|
|
|
|
@ -30,12 +31,13 @@ public class CityPartnerCommissionAnalysis {
|
|
|
|
|
private BigDecimal totalnetCharge = BigDecimal.ZERO;
|
|
|
|
|
|
|
|
|
|
public CityPartnerCommissionAnalysis(int orgId, int year, int month, BigDecimal rate, String channel, BigDecimal alipayChargeRate,
|
|
|
|
|
BigDecimal wechatChargeRate, BigDecimal jdChargeRate, BigDecimal alipayonlineChargeRate, BigDecimal orgRate) {
|
|
|
|
|
BigDecimal wechatChargeRate, BigDecimal jdChargeRate, BigDecimal alipayonlineChargeRate, BigDecimal orgRate,int commissionType) {
|
|
|
|
|
this.orgId = orgId;
|
|
|
|
|
this.year = year;
|
|
|
|
|
this.month = month;
|
|
|
|
|
this.rate = rate;
|
|
|
|
|
this.channel = channel;
|
|
|
|
|
this.commissionType = commissionType;
|
|
|
|
|
this.alipayChargeRate = alipayChargeRate;
|
|
|
|
|
this.wechatChargeRate = wechatChargeRate;
|
|
|
|
|
this.jdChargeRate = jdChargeRate;
|
|
|
|
@ -114,6 +116,7 @@ public class CityPartnerCommissionAnalysis {
|
|
|
|
|
item.put("org_charge", orgCharge);
|
|
|
|
|
item.put("channel", channel);
|
|
|
|
|
item.put("net_charge", netCharge);
|
|
|
|
|
item.put("commission_type",commissionType);
|
|
|
|
|
clientTrades.add(item);
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
@ -131,6 +134,7 @@ public class CityPartnerCommissionAnalysis {
|
|
|
|
|
result.put("org_charge", totalOrgChargeSum);
|
|
|
|
|
result.put("net_charge", totalnetCharge);
|
|
|
|
|
result.put("channel", channel);
|
|
|
|
|
result.put("commission_type",commissionType);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|