From 158e298e9e6bf34c63117be8090554be8cfe2e82 Mon Sep 17 00:00:00 2001
From: zhaoqingang <zhaoqg0118@163.com>
Date: 星期一, 10 二月 2025 11:40:15 +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 3a53aed..338dcba 100644
--- a/models/locationAnalysis.go
+++ b/models/locationAnalysis.go
@@ -236,13 +236,13 @@
 		return err
 	}
 	var tagTypes []string
-	var lastAppearanceTime int64
+	//var lastAppearanceTime int64
 	for _, record := range records {
 		tagTypes = []string{}
 		for _, personId := range record.DocumentNumbers {
 			logger.Debugf("document_number_map[personId] %s", document_number_map[personId])
 			tagTypes = append(tagTypes, document_number_map[personId].PersonType)
-			lastAppearanceTime = document_number_map[personId].LastAppearanceTime
+			//lastAppearanceTime = document_number_map[personId].LastAppearanceTime
 		}
 		logger.Debugf("tagTypes %s ---------------%s--------", tagTypes, record.DocumentNumbers)
 		_, typeNames, err := service.GetPersonTypeNameByTypes(tagTypes)
@@ -466,7 +466,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 缁撴瀯浣�

--
Gitblit v1.8.0