Browse Source

Merge branch 'master' of http://8.136.199.33:3000/hongze/hz_crm_api into cygx/cygx_12.8

xingzai 1 year ago
parent
commit
600873f17a
1 changed files with 14 additions and 14 deletions
  1. 14 14
      services/elastic.go

+ 14 - 14
services/elastic.go

@@ -374,20 +374,20 @@ func SearcCygxArticleHistoryData(indexName, keyword, startDate, endDate, company
 	//机构阅读数量
 	sortMap := make([]interface{}, 0)
 	//如果是一家公司就不按照这个字段排序
-	if len(seliceid) > 1 {
-		sortMap = append(sortMap, map[string]interface{}{
-			"CompanyArticleHistoryNum": map[string]interface{}{
-				"order": "desc",
-			},
-		})
-	}
-
-	//用户阅读数量
-	sortMap = append(sortMap, map[string]interface{}{
-		"UserArticleHistoryNum": map[string]interface{}{
-			"order": "desc",
-		},
-	})
+	//if len(seliceid) > 1 {
+	//	sortMap = append(sortMap, map[string]interface{}{
+	//		"CompanyArticleHistoryNum": map[string]interface{}{
+	//			"order": "desc",
+	//		},
+	//	})
+	//}
+	//
+	////用户阅读数量
+	//sortMap = append(sortMap, map[string]interface{}{
+	//	"UserArticleHistoryNum": map[string]interface{}{
+	//		"order": "desc",
+	//	},
+	//})
 	//时间
 	sortMap = append(sortMap, map[string]interface{}{
 		"CreateTime": map[string]interface{}{