完善号主订单交接待办入口
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user