From ea018c2bbc3ed88dc9896dcfb844d5ebe1bd2e21 Mon Sep 17 00:00:00 2001 From: zhaoqingang <zhaoqg0118@163.com> Date: 星期一, 10 二月 2025 09:47:53 +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 3a81f6c..952a632 100644 --- a/models/locationAnalysis.go +++ b/models/locationAnalysis.go @@ -502,7 +502,7 @@ for _, floorBucket := range floorBuckets { floor := floorBucket.(map[string]interface{})["key"].(string) logger.Debugf("floor--------------------------------------- %s -----%s ", floor, floorBucket) - appearCount := floorBucket.(map[string]interface{})["filter_floor"].(int) + appearCount := floorBucket.(map[string]interface{})["doc_count"].(float64) logger.Debugf("appearCount--------------------------------------- %s- --", appearCount) // 鏋勫缓 LocationRecord 缁撴瀯浣� var persons []string @@ -512,7 +512,7 @@ } } - //logger.Debugf("floor--------------------------------------- %s-- %s --", floor, appearCount) + logger.Debugf("persons--------------------------------------- %s-- %s --", floor, persons) record := &LocationRecord{ //PicDate: timestamp, DocumentNumbers: persons, @@ -520,7 +520,7 @@ Building: building, Floor: floor, OrgId: orgId, - AppearCount: appearCount, + AppearCount: int(appearCount), } records = append(records, record) -- Gitblit v1.8.0