From d1c5d57184839d7707557f8468516089b9b54d8e Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期六, 03 八月 2019 16:24:53 +0800
Subject: [PATCH] fix taskSdkAdd

---
 controllers/fileController.go |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/controllers/fileController.go b/controllers/fileController.go
index a21c1fd..32e9cfc 100644
--- a/controllers/fileController.go
+++ b/controllers/fileController.go
@@ -180,6 +180,7 @@
 	Sex string `json:"sex"`
 	TableId string `json:"tableId"`
 	TableName string `json:"tableName"`
+	Enable int32 `json:"enable"`
 }
 
 type CompareSortResult []CompareResult
@@ -235,6 +236,7 @@
 				PhoneNum: p.PhoneNum,
 				Sex: p.Sex,
 				TableId: p.TableId,
+				Enable: p.Enable,
 			}
 			dbTableInfos, _ := esApi.Dbtablefosbyid([]string{p.TableId}, config.EsInfo.EsIndex.DbTables.IndexName, esServerIp, esServerPort)
 			if dbTableInfos !=nil{
@@ -264,6 +266,8 @@
 					PhoneNum: p.PhoneNum,
 					Sex: p.Sex,
 					TableId: p.TableId,
+					BwType: strconv.Itoa(int(p.BwType)),
+					TableName: p.TableName,
 				})
 			}
 			vpE := CompareResult{
@@ -389,13 +393,13 @@
 			for _,f1 :=range *totalData {
 				scorePre = append(scorePre, f1.CompareScore)
 			}
-			logger.Debug("comp 鎺掑簭鍓嶅垎鍊兼暟缁勶細",scorePre)
+			//logger.Debug("comp 鎺掑簭鍓嶅垎鍊兼暟缁勶細",scorePre)
 			sort.Sort(totalData)
 			var scoreAf []float32
 			for _,f2 :=range *totalData {
 				scoreAf = append(scoreAf, f2.CompareScore)
 			}
-			logger.Debug("comp 鎺掑簭鍚庡垎鍊兼暟缁勶細",scoreAf)
+			//logger.Debug("comp 鎺掑簭鍚庡垎鍊兼暟缁勶細",scoreAf)
 			total := totalData.Len()
 
 			m["compareNum"] = compareOnce.CompareNum

--
Gitblit v1.8.0