mirror of
https://gitcode.com/flipped-aurora/gin-vue-admin.git
synced 2026-05-14 11:17:55 +00:00
断点续传前端页面开发中(后台逻辑已初步开发完成) 修复条件分页的总条目问题
This commit is contained in:
@@ -67,7 +67,7 @@ func (a *SysApi) GetInfoList(info modelInterface.PageInfo) (err error, list inte
|
||||
return
|
||||
} else {
|
||||
var apiList []SysApi
|
||||
err = db.Order("group", true).Where("path LIKE ?", "%"+a.Path+"%").Find(&apiList).Error
|
||||
err = db.Order("group", true).Where("path LIKE ?", "%"+a.Path+"%").Find(&apiList).Count(&total).Error
|
||||
return err, apiList, total
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user