From e9439d34d4fad9a4133f573d4bd5f84d441300b7 Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期五, 05 一月 2024 17:19:49 +0800 Subject: [PATCH] 调拨增加仓库位置 --- models/operation.go | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/models/operation.go b/models/operation.go index e9a7f1b..f7c37be 100644 --- a/models/operation.go +++ b/models/operation.go @@ -43,8 +43,10 @@ ReceiverPhone string `json:"receiverPhone" gorm:"type:varchar(31);comment:鑱旂郴鐢佃瘽"` ReceiverAddr string `json:"receiverAddr" gorm:"type:varchar(255);comment:鏀惰揣鍦板潃"` - LocationID int `json:"locationID" gorm:"type:int;not null;comment:婧愪綅缃甶d"` //婧愪綅缃甶d - Location Location `json:"location" gorm:"foreignkey:LocationID;references:Id"` //婧愪綅缃� + LocationID int `json:"locationID" gorm:"type:int;not null;comment:婧愪綅缃甶d"` //婧愪綅缃甶d + Location Location `json:"location" gorm:"foreignkey:LocationID;references:Id"` //婧愪綅缃� + ToLocationID int `json:"toLocationId" gorm:"type:int;not null;comment:浠撳簱浣嶇疆id"` //鐩爣浣嶇疆id + ToLocation Location `json:"toLocation" gorm:"foreignKey:ToLocationID;references:Id"` //鐩爣浣嶇疆 } OperationSearch struct { -- Gitblit v1.8.0