|
@@ -48,7 +48,7 @@ func PageSearch(engine *xorm.Engine, controllername string, apiname string, tabl
|
|
|
} else if records%int64(rows) == 0 {
|
|
} else if records%int64(rows) == 0 {
|
|
|
totalPageSize = records / int64(rows)
|
|
totalPageSize = records / int64(rows)
|
|
|
} else {
|
|
} else {
|
|
|
- totalPageSize = records / int64(rows+1)
|
|
|
|
|
|
|
+ totalPageSize = records / int64(rows) + 1
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
presult := models.PageResult{}
|
|
presult := models.PageResult{}
|