统计金额问题

This commit is contained in:
2025-11-22 16:38:07 +08:00
parent e6fccc7be9
commit b21d35a81d

View File

@@ -90,8 +90,8 @@ public interface ShopOrderStatisticMapper extends BaseMapper<ShopOrderStatistic>
*/
@Select("SELECT" +
" SUM(origin_amount) as orderAmount, " +
" SUM(order_amount) as actualAmount, " +
" SUM(origin_amount - order_amount) as discountAmount, " +
" SUM(pay_amount) as actualAmount, " +
" SUM(origin_amount - pay_amount) as discountAmount, " +
" statistic_date as tradeDay" +
" FROM" +
" tb_shop_order_statistic " +