|
@@ -182,6 +182,7 @@ func (m *BaseFromEdbMapping) GetPageItemsByCondition(condition string, pars []in
|
|
|
}
|
|
|
sql := fmt.Sprintf(`SELECT %s FROM %s WHERE 1=1 %s %s LIMIT ?,?`, fields, m.TableName(), condition, order)
|
|
|
//_, err = o.Raw(sql, pars, startSize, pageSize).QueryRows(&items)
|
|
|
- err = global.DEFAULT_DmSQL.Raw(sql, pars, startSize, pageSize).Find(&items).Error
|
|
|
+ pars = append(pars, startSize, pageSize)
|
|
|
+ err = global.DEFAULT_DmSQL.Raw(sql, pars...).Find(&items).Error
|
|
|
return
|
|
|
}
|