From c5a424633d7ae88d2bf687ff2e6f9f74445b04da Mon Sep 17 00:00:00 2001 From: sunty <1172534965@qq.com> Date: 星期三, 10 七月 2019 13:48:37 +0800 Subject: [PATCH] fix taglist --- controllers/taglist.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/controllers/taglist.go b/controllers/taglist.go index 7e57a03..fda7488 100644 --- a/controllers/taglist.go +++ b/controllers/taglist.go @@ -25,7 +25,7 @@ url := "http://" + config.EsInfo.Masterip + ":" + config.EsInfo.Httpport + "/" + config.EsInfo.EsIndex.DbTables.IndexName + "/_search" - prama := "{\"query\":{\"match_all\":{}},\"_source\":[\"tableName\",\"uuid\"]}" + prama := "{\"query\":{\"bool\":{\"filter\":[{\"term\":{\"isDelete\":0}}]}},\"_source\":[\"tableName\",\"uuid\"]}" tokenRes := esutil.GetEsDataReq(url, prama, true) sources := make([]map[string]interface{}, 0) -- Gitblit v1.8.0