Просмотр исходного кода

Merge branch 'cygx_9.1' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

xingzai 2 лет назад
Родитель
Сommit
c450cb0332
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      services/elastic.go

+ 1 - 1
services/elastic.go

@@ -999,7 +999,7 @@ func EsArticleSearch(keyWord string, startSize, pageSize int, orderColumn string
 			},
 		},
 	}
-	if orderColumn == "PublishDate" {
+	if orderColumn == "Comprehensive" {
 		queryMap["sort"] = sortMap
 	}
 	queryMap["from"] = startSize