退款订单列表增加金额汇总

refundOrder/list 响应增加 totalMoney(单位:分),走 $sum 聚合统计
整个筛选结果的退款金额,而不是当前这一页 —— 按渠道搜出几百笔时
只汇总当页会得出错误金额。

命中数为 0 时直接返回,不再多跑一次聚合和列表查询。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-11-11 17:49:17 +08:00
co-authored by Claude Opus 5
parent 3c8cefbb2a
commit e1674ec96b
3 changed files with 35 additions and 2 deletions
+3 -2
View File
@@ -20,8 +20,9 @@ type RefundOrderListReq struct {
}
type RefundOrderListResp struct {
Total int64 `json:"total"`
List refundOrderMod.RefundOrderList `json:"list"`
Total int64 `json:"total"`
TotalMoney int64 `json:"totalMoney"` // 符合当前筛选条件的共退款金额(单位:分),非仅当前页
List refundOrderMod.RefundOrderList `json:"list"`
}
// RefundOrderItem 一笔待回填的订单。