|
@@ -30,6 +30,16 @@ type CygxArticle struct {
|
|
|
ReportType int `description:"报告类型,1行业报告,2产业报告,0无"`
|
|
|
FileLink string `description:"下载预览链接"`
|
|
|
MatchTypeName string `description:"匹配类型"`
|
|
|
+
|
|
|
+ Periods string `description:"期数"`
|
|
|
+ ReportLink string `description:"报告链接"`
|
|
|
+ ArticleType string `description:"文章类型 文章类型,lyjh:路演精华 "`
|
|
|
+ HavePublish int `description:"是否发布过,1是 ,0 否"`
|
|
|
+ Source int `description:"来源 0策略平台同步,1小程序后台添加"`
|
|
|
+ SellerAndMobile string `description:"销售和手机号"`
|
|
|
+ VideoUrl string `description:"音频文件URL"`
|
|
|
+ VideoName string `description:"音频文件名称"`
|
|
|
+ VideoPlaySeconds string `description:"音频播放时长"`
|
|
|
}
|
|
|
|
|
|
type CygxArticleEs struct {
|
|
@@ -422,3 +432,43 @@ WHERE
|
|
|
err = o.Raw(sql, uid, uid, articleId).QueryRow(&item)
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+//日度点评的数据同步
|
|
|
+type ReportDetail struct {
|
|
|
+ Id int `orm:"column(id)" description:"报告Id"`
|
|
|
+ AddType int `description:"新增方式:1:新增报告,2:继承报告"`
|
|
|
+ ClassifyIdFirst int `description:"一级分类id"`
|
|
|
+ ClassifyNameFirst string `description:"一级分类名称"`
|
|
|
+ ClassifyIdSecond int `description:"二级分类id"`
|
|
|
+ ClassifyNameSecond string `description:"二级分类名称"`
|
|
|
+ Title string `description:"标题"`
|
|
|
+ Abstract string `description:"摘要"`
|
|
|
+ Author string `description:"作者"`
|
|
|
+ Frequency string `description:"频度"`
|
|
|
+ CreateTime string `description:"创建时间"`
|
|
|
+ ModifyTime string `description:"修改时间"`
|
|
|
+ State int `description:"1:未发布,2:已发布"`
|
|
|
+ PublishTime string `description:"发布时间"`
|
|
|
+ Stage int `description:"期数"`
|
|
|
+ MsgIsSend int `description:"消息是否已发送,0:否,1:是"`
|
|
|
+ Content string `description:"内容"`
|
|
|
+ VideoUrl string `description:"音频文件URL"`
|
|
|
+ VideoName string `description:"音频文件名称"`
|
|
|
+ VideoPlaySeconds string `description:"音频播放时长"`
|
|
|
+ ContentSub string `description:"内容前两个章节"`
|
|
|
+}
|
|
|
+
|
|
|
+func GetReportList() (items []*ReportDetail, err error) {
|
|
|
+ o := orm.NewOrm()
|
|
|
+ o.Using("rddp")
|
|
|
+ sql := `SELECT * FROM report WHERE classify_id_second = '57'`
|
|
|
+ _, err = o.Raw(sql).QueryRows(&items)
|
|
|
+ return
|
|
|
+}
|
|
|
+
|
|
|
+func GetMaxArticleIdInfo() (item *ArticleDetail, err error) {
|
|
|
+ o := orm.NewOrm()
|
|
|
+ sql := `SELECT * FROM cygx_article ORDER BY article_id desc LIMIT 1`
|
|
|
+ err = o.Raw(sql).QueryRow(&item)
|
|
|
+ return
|
|
|
+}
|