Browse Source

feat:重置

wangchuanjin 1 year ago
parent
commit
26f38b6534
1 changed files with 1 additions and 0 deletions
  1. 1 0
      mysql/mysql.go

+ 1 - 0
mysql/mysql.go

@@ -307,6 +307,7 @@ func (m *Mysql) Select(bath int, f func(l *[]map[string]interface{}) bool, tx *s
 		list = append(list, ret)
 		if bath > 0 && len(list) == bath {
 			if !f(&list) {
+				list = []map[string]interface{}{}
 				break
 			}
 			list = []map[string]interface{}{}