feat: 按汇率降序排列金币列表
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed

This commit is contained in:
xinian
2026-03-24 08:17:24 +08:00
committed by cnb
parent 356f7e2e19
commit bcb7e9f49c

View File

@@ -51,7 +51,7 @@ func (s *GoldListService) Done(listid uint32) (*model.GoldBeanOrder, error) {
}
func (s *GoldListService) Get() []model.GoldBeanOrder {
var rr []model.GoldBeanOrder
s.dbm_fix(s.Model).Where("status", 0).Scan(&rr)
s.dbm_fix(s.Model).Where("status", 0).Order("rate", "desc").Scan(&rr)
return rr
}