完善号主订单交接待办入口

This commit is contained in:
yml
2026-05-24 19:18:27 +08:00
parent 2678597af4
commit 8c619b37c8
4 changed files with 137 additions and 6 deletions
+1 -1
View File
@@ -605,7 +605,7 @@ func (r *Repository) AcceptCheckout(userID uint64, orderID uint64) error {
func (r *Repository) ListForUser(userID uint64) ([]OrderDTO, error) {
var rows []orderRow
err := r.baseQuery().
Where("o.renter_id = ?", userID).
Where("o.renter_id = ? OR o.owner_id = ?", userID, userID).
Order("o.id DESC").
Scan(&rows).Error
if err != nil {