|
@@ -134,6 +134,7 @@ func (m *CCFStockExcel) GetPageItemsByCondition(condition string, pars []interfa
|
|
|
order = ` ORDER BY ` + orderRule
|
|
|
}
|
|
|
sql := fmt.Sprintf(`SELECT %s FROM %s WHERE 1=1 %s %s LIMIT ?,?`, fields, m.TableName(), condition, order)
|
|
|
- err = global.DEFAULT_DmSQL.Raw(sql, pars, startSize, pageSize).Scan(&items).Error
|
|
|
+ pars = append(pars, startSize, pageSize)
|
|
|
+ err = global.DEFAULT_DmSQL.Raw(sql, pars...).Scan(&items).Error
|
|
|
return
|
|
|
}
|