Browse Source

no message

zhangchuanxing 2 months ago
parent
commit
6c9c239e21
1 changed files with 1 additions and 1 deletions
  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