|
@@ -172,6 +172,8 @@ func (m *ReportApproveMessage) GetPageItemsByCondition(condition string, pars []
|
|
|
}
|
|
|
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.DmSQL["rddp"].Raw(sql, pars...).Find(&items).Error
|
|
|
return
|
|
|
}
|