Commit 019f8c25 authored by honghuiliu's avatar honghuiliu 💬

日常提交

parent aa7ffa0d
...@@ -58,7 +58,7 @@ func (s *DataService) GetHistoryDataList(arg request.GetHistoryDataList) ([]admi ...@@ -58,7 +58,7 @@ func (s *DataService) GetHistoryDataList(arg request.GetHistoryDataList) ([]admi
db.Where("created_at <= ?", arg.EndTime) db.Where("created_at <= ?", arg.EndTime)
} }
db.Count(&count) db.Count(&count)
err := db.Limit(limit).Offset(offset).Find(&data).Error err := db.Limit(limit).Offset(offset).Order("created_at desc").Find(&data).Error
if err != nil { if err != nil {
return data, count, err return data, count, err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment