From 59e648d84df45c97c4591dd8c651fca0f20f86c1 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期六, 27 七月 2019 13:31:39 +0800 Subject: [PATCH] compareResult sort --- controllers/dbtablesCon.go | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/controllers/dbtablesCon.go b/controllers/dbtablesCon.go index ec2735b..f47c7d8 100644 --- a/controllers/dbtablesCon.go +++ b/controllers/dbtablesCon.go @@ -38,6 +38,9 @@ } else if isSync == "2" { analyServerFilterStr = "{\"term\":{\"analyServerId\":\"" + sysconf.ServerId + "\"}}" // 鏈湴搴� } + if analyServerFilterStr !="" { + analyServerFilterStr = ","+ analyServerFilterStr + } params := "{\"query\":{\"bool\":{\"must\":[" + "{\"term\":{\"isDelete\":\"0\"}}" + analyServerFilterStr + "]}}," + "\"from\":0,\"size\":1000,\"sort\":{\"id\":{\"order\":\"asc\"}}}" -- Gitblit v1.8.0