退款订单列表增加金额汇总
refundOrder/list 响应增加 totalMoney(单位:分),走 $sum 聚合统计 整个筛选结果的退款金额,而不是当前这一页 —— 按渠道搜出几百笔时 只汇总当页会得出错误金额。 命中数为 0 时直接返回,不再多跑一次聚合和列表查询。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -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 一笔待回填的订单。
|
||||
|
||||
Reference in New Issue
Block a user