挂账退款

This commit is contained in:
2026-02-05 10:57:02 +08:00
parent 746c5c83da
commit a53911aaa5
4 changed files with 8 additions and 0 deletions

View File

@@ -210,6 +210,7 @@ public interface ShopOrderStatisticMapper extends BaseMapper<ShopOrderStatistic>
" SUM(CASE WHEN pay_type = 'free_pay' THEN order_amount ELSE 0 END) AS backDiscountAmount," +
" " +
" SUM(CASE WHEN pay_type = 'vip_pay' THEN refund_amount ELSE 0 END) AS memberRefundAmount," +
" SUM(CASE WHEN pay_type = 'credit_pay' THEN refund_amount ELSE 0 END) AS creditRefundAmount," +
" " +
" SUM(CASE WHEN pay_type = 'vip_pay' THEN 1 ELSE 0 END) as memberPayCount," +
" SUM(CASE WHEN pay_type = 'cash_pay' THEN 1 ELSE 0 END) as cashPayCount," +

View File

@@ -62,6 +62,7 @@ public class FinanceStsServiceImpl implements FinanceStsService {
.setRefundAmount(statistic.getRefundAmount().add(statistic.getRechargeRefundAmount()))
.setOnlineRefundAmount(statistic.getOnlineRefundAmount())
.setCashRefundAmount(statistic.getCashRefundAmount())
.setCreditRefundAmount(statistic.getCreditRefundAmount())
.setMemberRefundAmount(statistic.getMemberRefundAmount())
.setRechargeRefundAmount(statistic.getRechargeRefundAmount())
.setOnlineRechargeRefundAmount(statistic.getOnlineRechargeRefundAmount())