|
@@ -368,3 +368,29 @@ func GetTimeLineReportIndustrialList(industrialManagementId, startSize, pageSize
|
|
_, err = o.Raw(sql, industrialManagementId, industrialManagementId, startSize, pageSize).QueryRows(&items)
|
|
_, err = o.Raw(sql, industrialManagementId, industrialManagementId, startSize, pageSize).QueryRows(&items)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+type IndustrialPublishdate struct {
|
|
|
|
+ PublishDate string `description:"发布时间"`
|
|
|
|
+ IndustrialManagementId int `description:"产业D"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+//标的列表
|
|
|
|
+func GetTimeLineReportIndustrialPublishdateList(industrialIdArr []int) (items []*IndustrialPublishdate, err error) {
|
|
|
|
+ o := orm.NewOrm()
|
|
|
|
+ sql := `SELECT
|
|
|
|
+ mmc.id,
|
|
|
|
+ 0,
|
|
|
|
+ mmc.industry_id AS industrial_management_id,
|
|
|
|
+ mmc.content AS title,
|
|
|
|
+ MAX( mm.meeting_time ) AS publish_date
|
|
|
|
+ FROM
|
|
|
|
+ cygx_morning_meeting_review_chapter AS mmc
|
|
|
|
+ INNER JOIN cygx_morning_meeting_reviews AS mm
|
|
|
|
+ WHERE
|
|
|
|
+ mm.id = mmc.meeting_id
|
|
|
|
+ AND mm.STATUS = 1
|
|
|
|
+ AND mmc.industry_id IN (` + utils.GetOrmInReplace(len(industrialIdArr)) + `)
|
|
|
|
+ GROUP BY industrial_management_id ORDER BY publish_date DESC `
|
|
|
|
+ _, err = o.Raw(sql, industrialIdArr).QueryRows(&items)
|
|
|
|
+ return
|
|
|
|
+}
|