From 844f645172ebde7e94307004647e4a41f71030be Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 17 十一月 2023 18:57:37 +0800
Subject: [PATCH] 引入bleve全文搜索引擎,创建位置报表索引,支持位置报表全文搜索

---
 models/operation_type.go |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/models/operation_type.go b/models/operation_type.go
index 5c1c4b3..ed03f46 100644
--- a/models/operation_type.go
+++ b/models/operation_type.go
@@ -135,6 +135,10 @@
 		db = db.Where("warehouse_id = ?", slf.WarehouseId)
 	}
 
+	if int(slf.BaseOperationType) != 0 {
+		db = db.Where("base_operation_type = ?", slf.BaseOperationType)
+	}
+
 	return db
 }
 

--
Gitblit v1.8.0