feat(admin-order): 订单管理列表恢复号主实际收入列

在金额左侧展示已结账/已仲裁订单的到手金额;整页一条批量 SQL 取最新结账行,避免 N+1。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
yml2213
2026-09-17 18:13:36 +08:00
co-authored by Cursor
parent 54985b7c36
commit ff8c35ebad
5 changed files with 318 additions and 30 deletions
+3
View File
@@ -125,6 +125,9 @@ type AdminOrderListItemDTO struct {
SettlementMode string `json:"settlement_mode"`
SettlementStatus string `json:"settlement_status"`
CreatedAt time.Time `json:"created_at"`
// OwnerIncomeAmountCent 为号主实际到手金额(分),仅在已结账/已仲裁订单上返回;
// 用指针区分「未结账(null)」与「到手 0 元」。数据来自结账表最新一行。
OwnerIncomeAmountCent *int64 `json:"owner_income_amount_cent,omitempty"`
}
type AdminActionsDTO struct {