From a31f930fff45db997d25b74182ef4ff37492e9ec Mon Sep 17 00:00:00 2001 From: yinbentan <yinbentan@live.com> Date: 星期一, 01 七月 2024 09:18:31 +0800 Subject: [PATCH] 字典查询去除字典类型判断 --- models/location_product_amount.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/models/location_product_amount.go b/models/location_product_amount.go index 6490139..d4990b1 100644 --- a/models/location_product_amount.go +++ b/models/location_product_amount.go @@ -47,7 +47,7 @@ ProductId string `json:"productId" gorm:"column:product_id"` ProductName string `json:"productName" gorm:"column:product_name"` Amount decimal.Decimal `json:"amount" gorm:"column:amount"` - AmountMoreUnits []UnitItems `json:"amountMoreUnits"` //鍦ㄥ簱鏁伴噺澶氬崟浣� + AmountMoreUnits []UnitItems `json:"amountMoreUnits" gorm:"-"` //鍦ㄥ簱鏁伴噺澶氬崟浣� Unit string `json:"unit" gorm:"column:unit"` CreateDate string `json:"createDate" gorm:"column:create_date"` AdjustAmount decimal.Decimal `json:"adjustAmount" gorm:"column:adjust_amount"` //宸�� -- Gitblit v1.8.0