瀏覽代碼

主题详情添加研选判断

xingzai 3 年之前
父節點
當前提交
49f78fe25e
共有 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
 			AND m.industrial_management_id = ? 
 			AND publish_status = 1 
+			AND a.category_name LIKE '%研选%' 
 		ORDER BY
 			publish_date DESC`
 	_, err = o.Raw(sql, userId, userId, industrialManagementId).QueryRows(&items)