浏览代码

no message

zhangchuanxing 6 月之前
父节点
当前提交
6c9c239e21
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/report.go

+ 1 - 1
models/report.go

@@ -1048,7 +1048,7 @@ func GetArticleResearchAndYxSpecialList(condition, conditionYxSpecial string, pa
 		WHERE
 			1 = 1  AND a.publish_status = 1   `
 	if condition != "" {
-		sql += condition
+		sql += condition + " GROUP BY article_id  "
 	}
 	if needYanxuanSpecial {
 		sql += `UNION ALL