From 05f96119b4d2e73316f221b08554a7de543fb0d5 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期六, 27 七月 2019 16:15:51 +0800
Subject: [PATCH] fix compare sdkName=人脸

---
 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