优化仲裁
This commit is contained in:
@@ -91,8 +91,10 @@ func applyUserVisibleFilter(db *gorm.DB, userID uint64) *gorm.DB {
|
||||
func (r *Repository) baseQuery(ctx context.Context) *gorm.DB {
|
||||
return r.adminFilterQuery(ctx).
|
||||
Select(`d.*, o.order_no, o.status AS order_status, o.handoff_status, o.settlement_status,
|
||||
o.owner_id, o.renter_id, owner.phone AS owner_phone, renter.phone AS renter_phone,
|
||||
l.listing_no, a.title, c.coin_consumed_m AS checkout_coin_consumed_m`)
|
||||
o.owner_id, o.renter_id, o.extra_item_original_amount_cent,
|
||||
owner.phone AS owner_phone, renter.phone AS renter_phone,
|
||||
l.listing_no, a.title, c.coin_consumed_m AS checkout_coin_consumed_m,
|
||||
c.consumable_amount_cent AS checkout_consumable_amount_cent`)
|
||||
}
|
||||
|
||||
func (r *Repository) adminFilterQuery(ctx context.Context) *gorm.DB {
|
||||
|
||||
Reference in New Issue
Block a user