From c6bf262f94bede8fb594123af84be7781b140e38 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 24 十一月 2023 17:03:33 +0800
Subject: [PATCH] fix

---
 service/input_history_search.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/service/input_history_search.go b/service/input_history_search.go
index 19bfa46..c3aca77 100644
--- a/service/input_history_search.go
+++ b/service/input_history_search.go
@@ -62,7 +62,7 @@
 func SearchHistoryReport(keyword string, operationType constvar.BaseOperationType, page, pageSize int) (recordIds []int, total uint64, err error) {
 	var ids []string
 	from := (page - 1) * pageSize
-	ids, total, err = blevex.Search(HistoryReportIndexName, keyword, from, pageSize)
+	ids, total, err = blevex.ComplexSearch(HistoryReportIndexName, keyword, map[string]interface{}{"baseOperationType": operationType}, from, pageSize)
 	if err != nil {
 		return
 	}

--
Gitblit v1.8.0