xingzai 1 год назад
Родитель
Сommit
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,