修复 仪表盘一直转圈ug
This commit is contained in:
@@ -79,7 +79,7 @@ func (r *Repository) Summary() (*DashboardDTO, error) {
|
||||
}
|
||||
|
||||
func (r *Repository) recentOrders() ([]RecentOrderDTO, error) {
|
||||
var rows []RecentOrderDTO
|
||||
rows := make([]RecentOrderDTO, 0)
|
||||
err := r.db.Table("rental_orders AS o").
|
||||
Select("o.id, o.order_no, a.title, o.renter_id, o.owner_id, o.status, o.rent_amount, o.deposit_amount, o.created_at").
|
||||
Joins("JOIN game_accounts AS a ON a.id = o.account_id").
|
||||
@@ -90,7 +90,7 @@ func (r *Repository) recentOrders() ([]RecentOrderDTO, error) {
|
||||
}
|
||||
|
||||
func (r *Repository) recentDisputes() ([]RecentDisputeDTO, error) {
|
||||
var rows []RecentDisputeDTO
|
||||
rows := make([]RecentDisputeDTO, 0)
|
||||
err := r.db.Table("disputes AS d").
|
||||
Select("d.id, d.order_id, o.order_no, a.title, d.type, d.status, d.initiator_id, d.created_at").
|
||||
Joins("JOIN rental_orders AS o ON o.id = d.order_id").
|
||||
|
||||
Reference in New Issue
Block a user