|
@@ -111,7 +111,7 @@ func GetAnalystMediaRangeReportIds(srcIds []int, analystId int) (mediaIds []int,
|
|
|
return
|
|
|
}
|
|
|
db := models.Main()
|
|
|
- err = db.Select(CommonColumns).Where(" id in ? and author_id = ? and id in ? and deleted =?", mediaIds, analystId, false).Find(&mediaIds).Error
|
|
|
+ err = db.Model(&Media{}).Select(CommonColumns).Where(" id in ? and author_id = ? and deleted =?", mediaIds, analystId, false).Find(&mediaIds).Error
|
|
|
return
|
|
|
}
|
|
|
func GetMediaPageByAnalystId(latestId int64, limit int, offset int, mediaType string, analystId int, mediaIds []int) (mediaList []Media, err error) {
|