|
@@ -783,25 +783,25 @@ func GetTimeLineReportIndustrialPublishdateList(industrialIdArr []int) (items []
|
|
|
|
|
|
// 报告榜单start
|
|
|
type ArticleReportBillboardResp struct {
|
|
|
- ArticleId int `description:"文章id"`
|
|
|
- Title string `description:"标题"`
|
|
|
- PublishDate string `description:"发布时间"`
|
|
|
- PermissionName string `description:"行业名称"`
|
|
|
- DepartmentId int `description:"作者Id"`
|
|
|
- NickName string `description:"作者昵称"`
|
|
|
- IsCollect bool `description:"本人是否收藏"`
|
|
|
- Pv int `description:"PV"`
|
|
|
- CollectNum int `description:"收藏人数"`
|
|
|
- Source int `description:"来源 1:弘则资源包(报告)、2:研选主题(报告)"`
|
|
|
- ArticleTypeId int `description:"文章类型ID判断是否是研选使用"`
|
|
|
- IsResearch bool `description:"是否属于研选"`
|
|
|
+ ArticleId int `description:"文章id"`
|
|
|
+ Title string `description:"标题"`
|
|
|
+ PublishDate string `description:"发布时间"`
|
|
|
+ PermissionName string `description:"行业名称"`
|
|
|
+ DepartmentId int `description:"作者Id"`
|
|
|
+ NickName string `description:"作者昵称"`
|
|
|
+ IsCollect bool `description:"本人是否收藏"`
|
|
|
+ Pv int `description:"PV"`
|
|
|
+ CollectNum int `description:"收藏人数"`
|
|
|
+ Source int `description:"来源 1:弘则资源包(报告)、2:研选主题(报告)"`
|
|
|
+ ArticleTypeId int `description:"文章类型ID判断是否是研选使用"`
|
|
|
+ IsResearch bool `description:"是否属于研选"`
|
|
|
ArticleTypeName string `description:"文章类型名称"`
|
|
|
IsSpecial int `description:"是否为研选专栏"`
|
|
|
SpecialTags string `description:"研选专栏标签"`
|
|
|
MyCollectNum int `description:"本人是否收藏"`
|
|
|
SpecialType int `description:"专栏类型 1:笔记,2:观点"`
|
|
|
UserId int `description:"作者id"`
|
|
|
- List []*IndustrialManagementIdInt
|
|
|
+ List []*IndustrialManagementIdInt
|
|
|
}
|
|
|
|
|
|
type ArticleReportBillboardLIstPageResp struct {
|
|
@@ -832,9 +832,9 @@ type ArticleResearchResp struct {
|
|
|
ImgUrlPc string `description:"图片链接"`
|
|
|
List []*IndustrialManagementIdInt `description:"产业列表"`
|
|
|
ListSubject []*IndustrialSubject `description:"标的列表"`
|
|
|
- IsSpecial int `description:"是否为研选专栏"`
|
|
|
- IndustryTags []string `description:"研选专栏行业标签"`
|
|
|
- CompanyTags []string `description:"研选专栏公司标签"`
|
|
|
+ IsSpecial bool `description:"是否为研选专栏"`
|
|
|
+ IndustryTags []string `description:"研选专栏行业标签"`
|
|
|
+ CompanyTags []string `description:"研选专栏公司标签"`
|
|
|
SpecialColumnId int `description:"专栏栏目id"`
|
|
|
}
|
|
|
|
|
@@ -893,7 +893,7 @@ func GetArticleResearchList(condition string, pars []interface{}, startSize, pag
|
|
|
a.id AS article_id,
|
|
|
a.title AS title,
|
|
|
'' AS body,
|
|
|
- '' AS annotation,
|
|
|
+ a.content AS annotation,
|
|
|
'' AS abstract,
|
|
|
a.publish_time AS publish_date,
|
|
|
-1 AS article_type_id,
|
|
@@ -913,7 +913,7 @@ func GetArticleResearchList(condition string, pars []interface{}, startSize, pag
|
|
|
JOIN cygx_yanxuan_special_author AS b ON a.user_id = b.user_id
|
|
|
WHERE
|
|
|
1 = 1 AND a.status = 3 `
|
|
|
- sql += ` GROUP BY a.article_id ORDER BY a.publish_date DESC LIMIT ?,? `
|
|
|
+ sql += ` GROUP BY article_id ORDER BY publish_date DESC LIMIT ?,? `
|
|
|
_, err = o.Raw(sql, userId, userId, pars, startSize, pageSize).QueryRows(&items)
|
|
|
} else {
|
|
|
sql += ` GROUP BY a.article_id ORDER BY a.publish_date DESC LIMIT ?,? `
|