Explorar o código

分页参数处理

xyxie hai 7 meses
pai
achega
de8d124244
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      models/data_manage/edb_info.go

+ 1 - 1
models/data_manage/edb_info.go

@@ -1681,7 +1681,7 @@ func GetEdbBaseInfoList(condition string, pars []interface{}, orderBy string, st
 		sql += ` ORDER BY edb_info_id ASC `
 	}
 	sql += `  LIMIT ?,? `
-
+	pars = append(pars, startSize, pageSize)
 	err = o.Raw(sql, pars...).Scan(&items).Error
 
 	return