zhangchuanxing il y a 2 mois
Parent
commit
6c9c239e21
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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