|
@@ -369,6 +369,6 @@ func GetReportPageByAnalyst(latestId int64, limit int, offset int, analyst strin
|
|
|
logger.Error("非法的limit参数:%d", limit)
|
|
|
}
|
|
|
db := models.Main()
|
|
|
- err = db.Select(CommonColumns).Where("status = ?", StatusPublish).Where("id<= ?").Where("id in ? and author like ?", latestId, reportIds, "%"+analyst+"%").Order("published_time desc").Limit(limit).Offset(offset).Find(&list).Error
|
|
|
+ err = db.Select(CommonColumns).Where("status = ?", StatusPublish).Where("id<= ? and id in ? and author like ?", latestId, reportIds, "%"+analyst+"%").Order("published_time desc").Limit(limit).Offset(offset).Find(&list).Error
|
|
|
return
|
|
|
}
|