From 8ed5402cb5d25afdfb51269bcb3f4a5bf8f3cb53 Mon Sep 17 00:00:00 2001 From: zhaoqingang <zhaoqg0118@163.com> Date: 星期一, 10 二月 2025 10:22:40 +0800 Subject: [PATCH] 测试 场景分析 bug --- models/locationAnalysis.go | 11 +++-------- 1 files changed, 3 insertions(+), 8 deletions(-) diff --git a/models/locationAnalysis.go b/models/locationAnalysis.go index 7c2f942..8ef8747 100644 --- a/models/locationAnalysis.go +++ b/models/locationAnalysis.go @@ -354,23 +354,18 @@ queryTimes = append(queryTimes, map[string]interface{}{ "range": map[string]interface{}{ "picDate": map[string]interface{}{ - "gte": start.Format("2006-01-02 15:04:05"), - "lte": end.Format("2006-01-02 15:04:05"), + "gte": start.Format(time.DateTime), // "2006-01-02 15:04:05d" + "lte": end.Format(time.DateTime), }, }, }) } - //var authParams = map[string]interface{}{ - // "bool": map[string]interface{}{ - // "should": queryTimes, - // }, - //} filters = append(filters, map[string]interface{}{ "bool": map[string]interface{}{ "should": queryTimes, }, }) - //logger.Debugf("filters--------------------------------------- %s", filters) + logger.Debugf("filters--------------------------------------- %s", filters) query := map[string]interface{}{ "query": map[string]interface{}{ "bool": map[string]interface{}{ -- Gitblit v1.8.0