소스 검색

no message

zhangchuanxing 2 달 전
부모
커밋
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