@@ -160,6 +160,7 @@ func (m *SaDoc) GetPageItemsByCondition(startSize, pageSize int, condition strin
}
sql += ` LIMIT ?,?`
//_, err = o.Raw(sql, pars...).QueryRows(&items)
+ pars = append(pars, startSize, pageSize)
err = global.DEFAULT_DmSQL.Raw(sql, pars...).Find(&items).Error
return