|
@@ -109,6 +109,24 @@ func IndustrialToArticleCategory(industrialManagementId, chartPermissionId int)
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+//产业下所关联的文章分类列表 2022-10-13
|
|
|
+func IndustrialToArticleCategoryNew(industrialManagementId int) (items []*IndustrialToArticleCategoryRep, err error) {
|
|
|
+ o := orm.NewOrm()
|
|
|
+ sql := `SELECT map.match_type_name,map.category_id
|
|
|
+ FROM cygx_report_mapping AS map
|
|
|
+ INNER JOIN cygx_article AS art ON art.category_id = map.category_id
|
|
|
+ INNER JOIN cygx_industrial_article_group_management AS man_g ON man_g.article_id = art.article_id
|
|
|
+ WHERE map.report_type = 2
|
|
|
+ AND map.is_report = 1
|
|
|
+ AND art.is_report = 1
|
|
|
+ AND art.publish_status = 1
|
|
|
+ AND man_g.industrial_management_id =?
|
|
|
+ AND map.chart_permission_id = ?
|
|
|
+ GROUP BY map.match_type_name`
|
|
|
+ _, err = o.Raw(sql, industrialManagementId).QueryRows(&items)
|
|
|
+ return
|
|
|
+}
|
|
|
+
|
|
|
//判断用户是否阅读该产业下,某一分类的文章
|
|
|
func IndustrialUserRecordArticleCount(userId, industrialManagementId, categoryId int) (count int, err error) {
|
|
|
o := orm.NewOrm()
|
|
@@ -208,13 +226,14 @@ func GetWhichDepartmentCount(condition string) (count int, err error) {
|
|
|
}
|
|
|
|
|
|
type IsShow struct {
|
|
|
- IsShow bool `description:"绝密内参按钮是否展示"`
|
|
|
- IsShowResearch bool `description:"研选是否展示限免"`
|
|
|
- IsShowChart bool `description:"图表是否展示限免"`
|
|
|
- IsShowList bool `description:"榜单是否展示"`
|
|
|
- LinkWxExplain string `description:"关注微信公众号链接说明地址"`
|
|
|
- YanXuan_Explain bool `description:"研选说明"`
|
|
|
- SearchTxtList SearchTxt `description:"搜索栏回显内容说明"`
|
|
|
+ IsShow bool `description:"绝密内参按钮是否展示"`
|
|
|
+ IsShowFreeButton bool `description:"免费送月卡按钮是否展示"`
|
|
|
+ IsShowResearch bool `description:"研选是否展示限免"`
|
|
|
+ IsShowChart bool `description:"图表是否展示限免"`
|
|
|
+ IsShowList bool `description:"榜单是否展示"`
|
|
|
+ LinkWxExplain string `description:"关注微信公众号链接说明地址"`
|
|
|
+ YanXuan_Explain bool `description:"研选说明"`
|
|
|
+ SearchTxtList SearchTxt `description:"搜索栏回显内容说明"`
|
|
|
}
|
|
|
|
|
|
type SearchTxt struct {
|