From 760b2091a4c611c75c5002ebc0e9455d35c44872 Mon Sep 17 00:00:00 2001
From: zhaoqingang <zhaoqg0118@163.com>
Date: 星期一, 10 二月 2025 12:58:04 +0800
Subject: [PATCH] 测试 场景分析 bug

---
 models/locationAnalysis.go |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/models/locationAnalysis.go b/models/locationAnalysis.go
index 6827c58..f426752 100644
--- a/models/locationAnalysis.go
+++ b/models/locationAnalysis.go
@@ -261,7 +261,7 @@
 			Location:    fmt.Sprintf("%s%s%s", domains[record.CommunityId].Name, record.Building, record.Floor),
 			Building:    record.Building,
 			Floor:       record.Floor,
-			//PicDate:       time.Unix(lastAppearanceTime, 0).Format("2006-01-02 15:04:05"),
+			//PicDate:     time.Unix(int64(record.PicDate/1000), 0).Format("2006-01-02 15:04:05"),
 			PicDate:       record.PicDate,
 			FirstPersonID: record.DocumentNumbers[0],
 		}
@@ -467,7 +467,7 @@
 								if floorBuckets, ok := locationBucket.(map[string]interface{})["floor"].(map[string]interface{})["buckets"].([]interface{}); ok {
 									for _, floorBucket := range floorBuckets {
 										floor := floorBucket.(map[string]interface{})["key"].(string)
-										logger.Debugf("floor--------------------------------------- %s -----%s ", floor, floorBucket)
+										//logger.Debugf("floor--------------------------------------- %s -----%s ", floor, floorBucket)
 										appearCount := floorBucket.(map[string]interface{})["doc_count"].(float64)
 										//logger.Debugf("appearCount--------------------------------------- %s- --", appearCount)
 										// 鏋勫缓 LocationRecord 缁撴瀯浣�
@@ -480,7 +480,7 @@
 										var PicDate string
 										if docNumBuckets, ok := floorBucket.(map[string]interface{})["picDate"].(map[string]interface{})["buckets"].([]interface{}); ok {
 											for _, docNumBucket := range docNumBuckets {
-												PicDate = docNumBucket.(map[string]interface{})["key"].(string)
+												PicDate = docNumBucket.(map[string]interface{})["key_as_string"].(string)
 											}
 										}
 										logger.Debugf("floor, persons--,appearCount------------------------------------- %s-- %s --", floor, persons, appearCount)

--
Gitblit v1.8.0