@@ -39,7 +39,7 @@ func (c OperationHistory) GetHistories(offset, limit int) ([]OperationHistory, i
db = db.Where("object like ?", "%"+c.Object+"%")
}
- err := db.Offset(offset).Limit(limit).Find(&list).Error
+ err := db.Order("handle_time DESC").Offset(offset).Limit(limit).Find(&list).Error
db.Count(&counts)
return list, counts, err