From 56831d71bbb16d262b72f55d2e008f2750f070f0 Mon Sep 17 00:00:00 2001
From: panlei <2799247126@qq.com>
Date: 星期六, 16 十一月 2019 18:11:51 +0800
Subject: [PATCH] ---

---
 insertdata/insertDataToEs.go |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/insertdata/insertDataToEs.go b/insertdata/insertDataToEs.go
index c5555d9..30443c8 100644
--- a/insertdata/insertDataToEs.go
+++ b/insertdata/insertDataToEs.go
@@ -233,7 +233,7 @@
 				ageDescription := getDescription(face.ThftRes.Age)
 				logger.Info(ageDescription)
 				var target = new(Target)
-				target.TargetId = strconv.FormatUint(face.Id, 10)
+				target.TargetId = face.Id
 				target.TargetScore = face.Score
 				target.TargetLocation = Points{TopLeft: Point{face.Location.X, face.Location.Y}, BottomRight: Point{face.Location.X + face.Location.Width, face.Location.Y + face.Location.Height}}
 				//logger.Info("浜鸿劯鐨刬d:",strconv.FormatUint(face.Id, 10))
@@ -249,7 +249,7 @@
 					msg.Tasklab.Taskid,
 					msg.Tasklab.Taskname,
 					"浜鸿劯",
-					"",
+					time.Now().Format("2006-01-02 15:04:05"),
 					alarmRules,
 					time.Now().Format("2006-01-02 15:04:05"), // 鍙娴嬶紝娌℃湁姣斿鏃堕棿
 					sex,                                      //鏆傛敼涓轰汉鑴竔d strconv.FormatUint(face.Id, 10)
@@ -397,14 +397,14 @@
 							// 鍘婚噸娣诲姞
 							var flag = true
 							for _, selectTarget := range targetInfos {
-								if strconv.FormatUint(target.Id, 10) == selectTarget.TargetId {
+								if target.Id == selectTarget.TargetId {
 									flag = false
 									break
 								}
 							}
 							if flag {
 								var target1 = new(Target)
-								target1.TargetId = strconv.FormatUint(target.Id, 10)
+								target1.TargetId = target.Id
 								target1.TargetScore = target.Score
 								target1.TargetLocation = Points{TopLeft: Point{target.Location.X, target.Location.Y}, BottomRight: Point{target.Location.X + target.Location.Width, target.Location.Y + target.Location.Height}}
 								targetInfos = append(targetInfos, *target1)
@@ -463,7 +463,7 @@
 						msg.Tasklab.Taskid,
 						msg.Tasklab.Taskname,
 						sdkNames,
-						"",
+						time.Now().Format("2006-01-02 15:04:05"),
 						alarmRules,
 						msg.Push.ServerId,
 						msg.Push.ServerName,
@@ -607,7 +607,7 @@
 						msg.Tasklab.Taskid,
 						msg.Tasklab.Taskname,
 						sdkNames,
-						"",
+						time.Now().Format("2006-01-02 15:04:05"),
 						alarmRules,
 						msg.Push.ServerId,
 						msg.Push.ServerName,
@@ -812,14 +812,14 @@
 						// 鍘婚噸娣诲姞
 						var flag = true
 						for _, selectTarget := range targetInfos {
-							if strconv.FormatUint(target.Id, 10) == selectTarget.TargetId {
+							if target.Id == selectTarget.TargetId {
 								flag = false
 								break
 							}
 						}
 						if flag {
 							var target1 = new(Target)
-							target1.TargetId = strconv.FormatUint(target.Id, 10)
+							target1.TargetId = target.Id
 							target1.TargetScore = target.Score
 							target1.TargetLocation = Points{TopLeft: Point{target.Location.X, target.Location.Y}, BottomRight: Point{target.Location.X + target.Location.Width, target.Location.Y + target.Location.Height}}
 							targetInfos = append(targetInfos, *target1)

--
Gitblit v1.8.0