|
@@ -1229,6 +1229,20 @@ func extractTextBeforePeriodOrNewline(htmlContent string) (string, error) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+// 处理产业管理时间线相关内容的数据
|
|
|
+func UpdateIndustrialManagementTimeLineDateList3ByRedis() (err error) {
|
|
|
+ for {
|
|
|
+ utils.Rc.Brpop(utils.CYGX_ARTICLE_TIME_LINE_KEY, func(b []byte) {
|
|
|
+ var log models.IndustrialManagementCount
|
|
|
+ if err := json.Unmarshal(b, &log); err != nil {
|
|
|
+ fmt.Println("json unmarshal wrong!")
|
|
|
+ go utils.SendAlarmMsg("处理产业管理时间线相关内容的数据处理Redis队列消息失败: UpdateIndustrialManagementTimeLineDateList3ByRedis "+err.Error()+string(b), 2)
|
|
|
+ }
|
|
|
+ IndustrialManagementTimeLineDateList3(log.IndustrialManagementId)
|
|
|
+ })
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
//func init_14_2() {
|
|
|
//SELECT * FROM cygx_resource_data WHERE source_id IN (SELECT article_id FROM cygx_article WHERE series_name IN ('行业深度','季度策略') ) AND source = 'article'
|
|
|
//}
|