From 942642be1995671d65b013e559376ac0bde4e8b9 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期二, 16 四月 2024 16:26:55 +0800 Subject: [PATCH] 产品添加字段 --- models/operation_details.go | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/models/operation_details.go b/models/operation_details.go index 067ba63..13b8463 100644 --- a/models/operation_details.go +++ b/models/operation_details.go @@ -18,6 +18,13 @@ Amount decimal.Decimal `json:"amount" gorm:"type:decimal(20,2);not null;comment:鏁伴噺"` //鏁伴噺 //Unit string `json:"unit" gorm:"type:varchar(31);comment:鍗曚綅"` //鍗曚綅 Product Material `json:"product" gorm:"foreignKey:ProductId;references:ID"` + + FromLocationID int `json:"fromLocationId" gorm:"type:int;not null;comment:婧愪綅缃甶d"` //婧愪綅缃甶d + FromLocation Location `json:"fromLocation" gorm:"foreignKey:FromLocationID;references:Id"` //婧愪綅缃� + ToLocationID int `json:"toLocationId" gorm:"type:int;not null;comment:鐩爣浣嶇疆id"` //鐩爣浣嶇疆id + ToLocation Location `json:"toLocation" gorm:"foreignKey:ToLocationID;references:Id"` //鐩爣浣嶇疆 + TotalGrossWeight decimal.Decimal `json:"totalGrossWeight" gorm:"type:decimal(20,3);comment:鎬绘瘺閲�"` + TotalNetWeight decimal.Decimal `json:"totalNetWeight" gorm:"type:decimal(20,3);comment:鎬诲噣閲�"` } OperationDetailsSearch struct { -- Gitblit v1.8.0