断点续传前端页面开发中(后台逻辑已初步开发完成) 修复条件分页的总条目问题

This commit is contained in:
pixel
2020-02-03 12:36:49 +08:00
parent 0603010838
commit fde34ae140
2 changed files with 5 additions and 1 deletions

View File

@@ -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
}
}