修复 仪表盘一直转圈ug

This commit is contained in:
yml2213
2026-05-27 01:23:57 +08:00
parent 6fe3c75674
commit a04327fd05
5 changed files with 10 additions and 5 deletions
@@ -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").