mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 13:49:19 +08:00
feat: 经营汇总透出退款单量/件数,并将退款指标归入规模维度
This commit is contained in:
+21
@@ -252,8 +252,15 @@ public class CompanyOverviewVO {
|
||||
|
||||
private BigDecimal orderCost;
|
||||
|
||||
/** 退款金额(计入经营规模) */
|
||||
private BigDecimal refundAmount;
|
||||
|
||||
/** 退款单量 */
|
||||
private Integer refundOrderCount;
|
||||
|
||||
/** 退款件数 */
|
||||
private Integer refundQuantitySum;
|
||||
|
||||
private BigDecimal totalPromotionFee;
|
||||
|
||||
private BigDecimal brushFee;
|
||||
@@ -310,8 +317,15 @@ public class CompanyOverviewVO {
|
||||
|
||||
private BigDecimal orderCost;
|
||||
|
||||
/** 退款金额(计入经营规模) */
|
||||
private BigDecimal refundAmount;
|
||||
|
||||
/** 退款单量 */
|
||||
private Integer refundOrderCount;
|
||||
|
||||
/** 退款件数 */
|
||||
private Integer refundQuantitySum;
|
||||
|
||||
private BigDecimal totalPromotionFee;
|
||||
|
||||
private BigDecimal brushFee;
|
||||
@@ -376,8 +390,15 @@ public class CompanyOverviewVO {
|
||||
|
||||
private BigDecimal orderCost;
|
||||
|
||||
/** 退款金额(计入经营规模) */
|
||||
private BigDecimal refundAmount;
|
||||
|
||||
/** 退款单量 */
|
||||
private Integer refundOrderCount;
|
||||
|
||||
/** 退款件数 */
|
||||
private Integer refundQuantitySum;
|
||||
|
||||
private BigDecimal totalPromotionFee;
|
||||
|
||||
private BigDecimal brushFee;
|
||||
|
||||
+12
@@ -574,6 +574,8 @@ public class CompanyOverviewServiceImpl implements CompanyOverviewService {
|
||||
s.setOtherCost(m.otherCost);
|
||||
s.setOrderCost(m.orderCost());
|
||||
s.setRefundAmount(m.refund);
|
||||
s.setRefundOrderCount(m.refundOrderCount);
|
||||
s.setRefundQuantitySum(m.refundQuantitySum);
|
||||
s.setTotalPromotionFee(promo);
|
||||
s.setBrushFee(brush);
|
||||
s.setFeeRatio(safeDivide(promo, m.sales));
|
||||
@@ -605,6 +607,8 @@ public class CompanyOverviewServiceImpl implements CompanyOverviewService {
|
||||
s.setOtherCost(m.otherCost);
|
||||
s.setOrderCost(m.orderCost());
|
||||
s.setRefundAmount(m.refund);
|
||||
s.setRefundOrderCount(m.refundOrderCount);
|
||||
s.setRefundQuantitySum(m.refundQuantitySum);
|
||||
s.setTotalPromotionFee(promo);
|
||||
s.setBrushFee(brush);
|
||||
s.setFeeRatio(safeDivide(promo, m.sales));
|
||||
@@ -632,6 +636,8 @@ public class CompanyOverviewServiceImpl implements CompanyOverviewService {
|
||||
s.setOtherCost(m.otherCost);
|
||||
s.setOrderCost(m.orderCost());
|
||||
s.setRefundAmount(m.refund);
|
||||
s.setRefundOrderCount(m.refundOrderCount);
|
||||
s.setRefundQuantitySum(m.refundQuantitySum);
|
||||
s.setTotalPromotionFee(promo);
|
||||
s.setBrushFee(brush);
|
||||
s.setFeeRatio(safeDivide(promo.add(brush), m.sales));
|
||||
@@ -786,6 +792,8 @@ public class CompanyOverviewServiceImpl implements CompanyOverviewService {
|
||||
int dealQuantitySum;
|
||||
int salesQuantitySum;
|
||||
BigDecimal refund = BigDecimal.ZERO;
|
||||
int refundOrderCount;
|
||||
int refundQuantitySum;
|
||||
BigDecimal productCost = BigDecimal.ZERO;
|
||||
BigDecimal freightCost = BigDecimal.ZERO;
|
||||
BigDecimal otherCost = BigDecimal.ZERO;
|
||||
@@ -809,6 +817,8 @@ public class CompanyOverviewServiceImpl implements CompanyOverviewService {
|
||||
a.dealQuantitySum = row.getDealQuantitySum() != null ? row.getDealQuantitySum().intValue() : 0;
|
||||
a.salesQuantitySum = row.getSalesQuantitySum() != null ? row.getSalesQuantitySum().intValue() : 0;
|
||||
a.refund = nz(row.getRefundAmount());
|
||||
a.refundOrderCount = row.getRefundOrderCount() != null ? row.getRefundOrderCount().intValue() : 0;
|
||||
a.refundQuantitySum = row.getRefundQuantitySum() != null ? row.getRefundQuantitySum().intValue() : 0;
|
||||
a.productCost = nz(row.getProductCost());
|
||||
a.freightCost = nz(row.getFreightCost());
|
||||
a.otherCost = nz(row.getOtherCost());
|
||||
@@ -824,6 +834,8 @@ public class CompanyOverviewServiceImpl implements CompanyOverviewService {
|
||||
a.dealQuantitySum = dealQuantitySum + o.dealQuantitySum;
|
||||
a.salesQuantitySum = salesQuantitySum + o.salesQuantitySum;
|
||||
a.refund = refund.add(o.refund);
|
||||
a.refundOrderCount = refundOrderCount + o.refundOrderCount;
|
||||
a.refundQuantitySum = refundQuantitySum + o.refundQuantitySum;
|
||||
a.productCost = productCost.add(o.productCost);
|
||||
a.freightCost = freightCost.add(o.freightCost);
|
||||
a.otherCost = otherCost.add(o.otherCost);
|
||||
|
||||
Reference in New Issue
Block a user