From 1c57e87e33e0dbf7776b1ca90146c77e4408dfe3 Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期三, 20 九月 2023 19:34:41 +0800 Subject: [PATCH] 1.出入库增加限制 --- models/operation_type.go | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/models/operation_type.go b/models/operation_type.go index 92c244c..aac39b3 100644 --- a/models/operation_type.go +++ b/models/operation_type.go @@ -88,6 +88,11 @@ return slf } +func (slf *OperationTypeSearch) SetBaseOperationType(baseOperationType constvar.BaseOperationType) *OperationTypeSearch { + slf.BaseOperationType = baseOperationType + return slf +} + func (slf *OperationTypeSearch) build() *gorm.DB { var db = slf.Orm.Model(&OperationType{}) -- Gitblit v1.8.0