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_details.go | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/models/operation_details.go b/models/operation_details.go index 7901215..73d359e 100644 --- a/models/operation_details.go +++ b/models/operation_details.go @@ -243,3 +243,16 @@ return records, nil } + +func (slf *OperationDetailsSearch) FindAll() ([]*OperationDetails, error) { + var ( + records = make([]*OperationDetails, 0) + db = slf.build() + ) + + if err := db.Find(&records).Error; err != nil { + return records, fmt.Errorf("find records err: %v", err) + } + + return records, nil +} -- Gitblit v1.8.0