From abc05dcd6f9ab2ec826c1109afc135e4722d5c28 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期四, 01 八月 2019 18:26:31 +0800 Subject: [PATCH] fix 4 to 1 --- controllers/fileController.go | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/controllers/fileController.go b/controllers/fileController.go index 57798d0..b3b4406 100644 --- a/controllers/fileController.go +++ b/controllers/fileController.go @@ -185,7 +185,7 @@ type CompareSortResult []CompareResult func (s CompareSortResult) Len() int{ - return s.Len() + return len(s) } func (s CompareSortResult) Swap(i,j int){ s[i],s[j] = s[j],s[i] @@ -264,6 +264,8 @@ PhoneNum: p.PhoneNum, Sex: p.Sex, TableId: p.TableId, + BwType: strconv.Itoa(int(p.BwType)), + TableName: p.TableName, }) } vpE := CompareResult{ @@ -389,13 +391,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