修复AscPk()写成Asc()的问题

This commit is contained in:
GoEdgeLab
2023-05-12 15:34:18 +08:00
parent 6146ffdf56
commit 667628aff3
4 changed files with 5 additions and 5 deletions

View File

@@ -51,7 +51,7 @@ func (this *SysEventDAO) CreateEvent(tx *dbs.Tx, event EventInterface) error {
// 查找事件
func (this *SysEventDAO) FindEvents(tx *dbs.Tx, size int64) (result []*SysEvent, err error) {
_, err = this.Query(tx).
Asc().
AscPk().
Limit(size).
Slice(&result).
FindAll()