update method of operation record

This commit is contained in:
Granty1
2020-07-05 14:45:05 +08:00
parent 9a582877ea
commit 783e355501
15 changed files with 81 additions and 86 deletions
+1 -1
View File
@@ -74,6 +74,6 @@ func GetSysOperationRecordInfoList(info request.SysOperationRecordSearch) (err e
db = db.Where("status = ?", info.Status)
}
err = db.Count(&total).Error
err = db.Limit(limit).Offset(offset).Find(&sysOperationRecords).Error
err = db.Order("id desc").Limit(limit).Offset(offset).Preload("User").Find(&sysOperationRecords).Error
return err, sysOperationRecords, total
}