xingzai 1 سال پیش
والد
کامیت
0fc4b0c1d3
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      models/report.go

+ 3 - 1
models/report.go

@@ -207,7 +207,9 @@ func GetReportAndproductIndustrylListimg(categoryId, userId, startSize, pageSize
 			cygx_article AS art 
 		WHERE
 			art.publish_status = 1 
-			AND category_id IN ( SELECT category_id_celue FROM cygx_report_mapping_group WHERE id_cygx = ` + strconv.Itoa(categoryId) + ` ) UNION ALL
+			AND category_id IN ( SELECT category_id_celue FROM cygx_report_mapping_group WHERE id_cygx = ` + strconv.Itoa(categoryId) + ` )
+			OR  article_id  IN  ( SELECT article_id FROM cygx_report_group_by_hand WHERE id_cygx =  ` + strconv.Itoa(categoryId) + ` )
+		UNION ALL
 		SELECT
 			art.product_interior_id AS article_id,
 			art.body,