mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
Merge branch 'develop' of https://github.com/gogf/gf into develop
This commit is contained in:
@ -123,7 +123,7 @@ func (m *Model) getFieldsFiltered() string {
|
||||
// Chunk iterates the query result with given size and callback function.
|
||||
func (m *Model) Chunk(limit int, callback func(result Result, err error) bool) {
|
||||
page := m.start
|
||||
if page == 0 {
|
||||
if page <= 0 {
|
||||
page = 1
|
||||
}
|
||||
model := m
|
||||
|
||||
Reference in New Issue
Block a user