فهرست منبع

Merge branch 'debug' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

xingzai 2 سال پیش
والد
کامیت
8ad94094ca
2فایلهای تغییر یافته به همراه4 افزوده شده و 11 حذف شده
  1. 0 7
      controllers/report.go
  2. 4 4
      models/report.go

+ 0 - 7
controllers/report.go

@@ -2854,13 +2854,6 @@ func (this *ReportController) SearchReportAndResource() {
 			industrialVideoMap[v.IndustryId] = tmp
 		}
 
-		for k, v := range listYxResource {
-			//展示产业视频
-			if video, ok := industrialVideoMap[v.IndustrialManagementId]; ok {
-				listYxResource[k].IndustryVideo = video
-			}
-		}
-
 		for k, v := range listHzResource {
 			//展示产业视频
 			if video, ok := industrialVideoMap[v.IndustrialManagementId]; ok {

+ 4 - 4
models/report.go

@@ -830,7 +830,7 @@ WHERE
 	a.publish_status = 1 
 	AND a.is_class = 1 
 	AND man_g.industrial_management_id = ?
-	UNION 
+	UNION ALL
 	SELECT
 	COUNT( 1 ) count 
 	FROM
@@ -860,7 +860,7 @@ func GetTimeLineReportIndustrialList(industrialManagementId, startSize, pageSize
 	* 
 FROM
 	(
-	SELECT
+		SELECT
 		a.article_id AS id,
 		a.title,
 		a.publish_date AS publish_time,
@@ -872,12 +872,12 @@ FROM
 	WHERE
 		a.publish_status = 1 
 		AND a.is_class = 1 
-		AND man_g.industrial_management_id = ? UNION
+		AND man_g.industrial_management_id = ? UNION ALL
 	SELECT
 		mmc.id,
 		'' AS title,
+		mm.publish_time AS publish_time,
 		'' AS video_url,
-		mm.publish_time,
 		mmc.content 
 	FROM
 		cygx_morning_meeting_review_chapter AS mmc