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