Ver Fonte

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

kobe6258 há 7 meses atrás
pai
commit
2e10aa23b4
1 ficheiros alterados com 1 adições e 1 exclusões
  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
 }