From 805324d0ddac6215f8250c616c979c77a3a4f9f3 Mon Sep 17 00:00:00 2001 From: sunty <suntianyu0923@163.com> Date: 星期五, 26 七月 2019 15:46:56 +0800 Subject: [PATCH] fix bug --- controllers/dbtableperson.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/controllers/dbtableperson.go b/controllers/dbtableperson.go index bce4198..6d7d5c7 100644 --- a/controllers/dbtableperson.go +++ b/controllers/dbtableperson.go @@ -149,7 +149,7 @@ bytes, _ := json.Marshal(uuids) s := string(bytes) url := "http://" + config.EsInfo.Masterip + ":" + config.EsInfo.Httpport + - "/" + config.EsInfo.EsIndex.Dbtablepersons.IndexName + "/_update_by_query?refresh=wait_for" // + config.EsInfo.EsIndex.Dbtablepersons.IndexType + "/" + "/" + s + "/" + config.EsInfo.EsIndex.Dbtablepersons.IndexName + "/_update_by_query?refresh" // + config.EsInfo.EsIndex.Dbtablepersons.IndexType + "/" + "/" + s params := "{\"script\":{\"lang\":\"painless\",\"inline\":\"ctx._source.isDelete = \\\"1\\\";" + "ctx._source.updateTime = \\\"" + time.Now().Format("2006-01-02 15:04:05") + "\\\"\"},\"query\":{\"terms\":{\"_id\":" + s + "}}}" logger.Debug("鍒犻櫎璇锋眰url:%s;\n 璇锋眰鍙傛暟params:%s", url, params) -- Gitblit v1.8.0