|
@@ -510,6 +510,7 @@ type ArticleCollectionResp struct {
|
|
IndustryTags string `description:"研选专栏行业标签"`
|
|
IndustryTags string `description:"研选专栏行业标签"`
|
|
CompanyTags string `description:"研选专栏公司标签"`
|
|
CompanyTags string `description:"研选专栏公司标签"`
|
|
ArticleTypeName string `description:"文章类型名称"`
|
|
ArticleTypeName string `description:"文章类型名称"`
|
|
|
|
+ TopTime int `description:"置顶时间"`
|
|
}
|
|
}
|
|
|
|
|
|
type IndustrialManagementResp struct {
|
|
type IndustrialManagementResp struct {
|
|
@@ -719,6 +720,7 @@ type ArticleResearchResp struct {
|
|
SpecialTags string `description:"研选专栏标签"`
|
|
SpecialTags string `description:"研选专栏标签"`
|
|
UserId int `description:"作者id"`
|
|
UserId int `description:"作者id"`
|
|
List []*IndustrialManagementResp `description:"产业列表"`
|
|
List []*IndustrialManagementResp `description:"产业列表"`
|
|
|
|
+ TopTime int `description:"置顶时间"`
|
|
}
|
|
}
|
|
|
|
|
|
// 获取我的日程数量
|
|
// 获取我的日程数量
|
|
@@ -817,7 +819,8 @@ func GetArticleResearchList(condition string, pars []interface{}, startSize, pag
|
|
0 AS special_type,
|
|
0 AS special_type,
|
|
0 AS user_id,
|
|
0 AS user_id,
|
|
'' AS company_tags,
|
|
'' AS company_tags,
|
|
- '' AS industry_tags
|
|
|
|
|
|
+ '' AS industry_tags,
|
|
|
|
+ a.top_time
|
|
FROM
|
|
FROM
|
|
cygx_article AS a
|
|
cygx_article AS a
|
|
INNER JOIN cygx_article_department AS d ON d.department_id = a.department_id
|
|
INNER JOIN cygx_article_department AS d ON d.department_id = a.department_id
|
|
@@ -843,19 +846,18 @@ func GetArticleResearchList(condition string, pars []interface{}, startSize, pag
|
|
a.type AS special_type,
|
|
a.type AS special_type,
|
|
a.user_id AS user_id,
|
|
a.user_id AS user_id,
|
|
a.company_tags AS company_tags,
|
|
a.company_tags AS company_tags,
|
|
- a.industry_tags AS industry_tags
|
|
|
|
|
|
+ a.industry_tags AS industry_tags,
|
|
|
|
+ 0 as top_time
|
|
FROM
|
|
FROM
|
|
cygx_yanxuan_special AS a
|
|
cygx_yanxuan_special AS a
|
|
JOIN cygx_yanxuan_special_author AS b ON a.user_id = b.user_id
|
|
JOIN cygx_yanxuan_special_author AS b ON a.user_id = b.user_id
|
|
WHERE
|
|
WHERE
|
|
1 = 1 AND a.status = 3 `
|
|
1 = 1 AND a.status = 3 `
|
|
- sql += ` ORDER BY publish_time DESC LIMIT ?,? `
|
|
|
|
- _, err = o.Raw(sql, pars, startSize, pageSize).QueryRows(&items)
|
|
|
|
- } else {
|
|
|
|
- sql += ` ORDER BY publish_time DESC LIMIT ?,? `
|
|
|
|
- _, err = o.Raw(sql, pars, startSize, pageSize).QueryRows(&items)
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ sql += ` ORDER BY top_time DESC, publish_time DESC LIMIT ?,? `
|
|
|
|
+ _, err = o.Raw(sql, pars, startSize, pageSize).QueryRows(&items)
|
|
|
|
+
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1380,19 +1382,21 @@ WHERE
|
|
}
|
|
}
|
|
|
|
|
|
type TimeLineReportItem struct {
|
|
type TimeLineReportItem struct {
|
|
- Id int `description:"文章或晨报点评id"`
|
|
|
|
- Title string `description:"标题"`
|
|
|
|
- PublishTime string `description:"发布时间"`
|
|
|
|
- Content string `description:"内容"`
|
|
|
|
- VideoUrl string `description:"视频链接"`
|
|
|
|
- VoiceUrl string `description:"音频链接"`
|
|
|
|
- VoicePlaySeconds string `description:"音频时长"`
|
|
|
|
- IsHaveVideo bool `description:"是否包含视频"`
|
|
|
|
- ImgUrlPc string `description:"pc图片"`
|
|
|
|
- SubCategoryName string `description:"二级分类"`
|
|
|
|
- IsRed bool `description:"是否标红"`
|
|
|
|
- Readnum int `description:"阅读数量"`
|
|
|
|
- Resource int `description:"来源类型,1:文章、2:产品内测、3:晨报点评 4:活动回放视频 5:活动回放音频 "`
|
|
|
|
|
|
+ Id int `description:"文章或晨报点评id"`
|
|
|
|
+ Title string `description:"标题"`
|
|
|
|
+ PublishTime string `description:"发布时间"`
|
|
|
|
+ Content string `description:"内容"`
|
|
|
|
+ VideoUrl string `description:"视频链接"`
|
|
|
|
+ VoiceUrl string `description:"音频链接"`
|
|
|
|
+ VoicePlaySeconds string `description:"音频时长"`
|
|
|
|
+ IsHaveVideo bool `description:"是否包含视频"`
|
|
|
|
+ ImgUrlPc string `description:"pc图片"`
|
|
|
|
+ SubCategoryName string `description:"二级分类"`
|
|
|
|
+ IsRed bool `description:"是否标红"`
|
|
|
|
+ Readnum int `description:"阅读数量"`
|
|
|
|
+ Resource int `description:"来源类型,1:文章、2:产品内测、3:晨报点评 4:活动回放视频 5:活动回放音频 "`
|
|
|
|
+ LinkArticleId int `description:"晨会精华报告ID链接"`
|
|
|
|
+ ListSubject []*CygxIndustrialSubject `description:"标的列表"`
|
|
}
|
|
}
|
|
|
|
|
|
// 获取产业报告+晨会点评列表
|
|
// 获取产业报告+晨会点评列表
|
|
@@ -1422,7 +1426,7 @@ FROM
|
|
AND man_g.industrial_management_id = ? GROUP BY id UNION ALL
|
|
AND man_g.industrial_management_id = ? GROUP BY id UNION ALL
|
|
SELECT
|
|
SELECT
|
|
mmc.id,
|
|
mmc.id,
|
|
- '' AS title,
|
|
|
|
|
|
+ mmc.title,
|
|
mm.publish_time AS publish_time,
|
|
mm.publish_time AS publish_time,
|
|
'' AS video_url,
|
|
'' AS video_url,
|
|
'' AS voice_url,
|
|
'' AS voice_url,
|