From 547033793c42538123775cf862b0cff46f79d661 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期四, 11 四月 2024 10:17:28 +0800 Subject: [PATCH] 获取位置产品信息 --- service/input_history_search.go | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/service/input_history_search.go b/service/input_history_search.go index e81a10d..68b61f9 100644 --- a/service/input_history_search.go +++ b/service/input_history_search.go @@ -98,10 +98,14 @@ var ids []string from := (page - 1) * pageSize t, err := parseDateString(keyword) + m := make(map[string]interface{}) + if operationType > 0 { + m["baseOperationType"] = operationType + } if err != nil && t.IsZero() { - ids, total, err = blevex.ComplexSearch(HistoryReportIndexName, keyword, map[string]interface{}{"baseOperationType": operationType}, from, pageSize) + ids, total, err = blevex.ComplexSearch(HistoryReportIndexName, keyword, m, from, pageSize) } else { - ids, total, err = blevex.TimeSearch(HistoryReportIndexName, t, map[string]interface{}{"baseOperationType": operationType}, from, pageSize) + ids, total, err = blevex.TimeSearch(HistoryReportIndexName, t, m, from, pageSize) } if err != nil { -- Gitblit v1.8.0