Преглед изворни кода

主题详情添加研选判断

xingzai пре 3 година
родитељ
комит
39d210af72
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      models/report.go

+ 1 - 0
models/report.go

@@ -563,6 +563,7 @@ func GetThemeDetail(userId, industrialManagementId int) (items []*GetThemeDetail
 			1 = 1
 			1 = 1
 			AND m.industrial_management_id = ? 
 			AND m.industrial_management_id = ? 
 			AND publish_status = 1 
 			AND publish_status = 1 
+			AND a.category_name LIKE '%研选%' 
 		ORDER BY
 		ORDER BY
 			publish_date DESC`
 			publish_date DESC`
 	_, err = o.Raw(sql, userId, userId, industrialManagementId).QueryRows(&items)
 	_, err = o.Raw(sql, userId, userId, industrialManagementId).QueryRows(&items)