金额问题

This commit is contained in:
2026-04-22 10:59:26 +08:00
parent 28f5ead83a
commit 4d059a2f84
2 changed files with 4 additions and 4 deletions

View File

@@ -84,8 +84,8 @@
SELECT
sum(detail.num-detail.return_num) as saleCount,
sum(detail.pay_amount) as totalAmount,
sum(detail.refund_num) refundCount,
sum(detail.return_amount) refundAmount
sum(detail.refund_num) as refundCount,
sum(detail.return_amount) as refundAmount
FROM
tb_order_info `order`
INNER JOIN tb_order_detail detail ON `order`.id = detail.order_id
@@ -104,7 +104,7 @@
<select id="summaryCountSingleDate" resultType="com.czg.order.vo.SaleSummaryCountVo">
SELECT
sum(statistic.sale_count) AS saleCount,
sum(statistic.sale_amount) AS saleAmount,
sum(statistic.sale_amount) AS totalAmount,
sum(statistic.refund_count) AS refundCount,
sum(statistic.refund_amount) AS refundAmount
FROM