Преглед на файлове

研究研报告媒体风险等级筛选

kobe6258 преди 7 месеца
родител
ревизия
2e10aa23b4
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      models/report/report.go

+ 1 - 1
models/report/report.go

@@ -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
 }