|
@@ -157,7 +157,7 @@ func GetEdbInspectionMessageCountByAdminId(adminId int) (count int, err error) {
|
|
|
|
|
|
func GetEdbInspectionMessagePageByAdminId(adminId, startSize, pageSize int) (items []*EdbInspectionMessage, err error) {
|
|
|
o := global.DbMap[utils.DbNameIndex]
|
|
|
- sql := "SELECT * FROM edb_inspection_message WHERE admin_id =? ORDER BY is_read ASC, create_time DESC LIMIT?,?"
|
|
|
+ sql := "SELECT * FROM edb_inspection_message WHERE admin_id =? ORDER BY is_read ASC, create_time DESC LIMIT ?,?"
|
|
|
err = o.Raw(sql, adminId, startSize, pageSize).Find(&items).Error
|
|
|
return
|
|
|
}
|