From e695d7c697196a36f8cdafc90e6a403a12707591 Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期六, 21 十月 2023 17:43:36 +0800 Subject: [PATCH] 1.拆分报废、调拨、盘点列表接口 --- models/location.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/models/location.go b/models/location.go index 15830ea..ef755e6 100644 --- a/models/location.go +++ b/models/location.go @@ -310,7 +310,7 @@ records = make([]*Location, 0) db = slf.build() ) - err := db.Find(&records) + err := db.Find(&records).Error if err != nil { fmt.Println(err) return records, fmt.Errorf("func FindAll err: %v", err) -- Gitblit v1.8.0