From ed81fc8d860adb66676d4990e4ce0ff56cff79a6 Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期三, 22 十一月 2023 19:48:16 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/aps/WMS

---
 models/move_history.go |   28 +++++++++++++++-------------
 1 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/models/move_history.go b/models/move_history.go
index 3bd9974..f47383f 100644
--- a/models/move_history.go
+++ b/models/move_history.go
@@ -13,19 +13,21 @@
 	MoveHistory struct {
 		WmsModel
 		Id                int                        `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"`
-		Number            string                     `json:"number" gorm:"column:number;type:varchar(255)"`                 //鍗曞彿
-		BaseOperationType constvar.BaseOperationType `json:"baseOperationType" gorm:"type:tinyint;not null;comment:鍩虹浣滀笟绫诲瀷"` //鍩虹浣滀笟绫诲瀷
-		OperationTypeId   int                        `json:"operationTypeId" gorm:"type:int;not null;comment:浣滀笟绫诲瀷id"`       //浣滀笟绫诲瀷id
-		OperationId       int                        `json:"operationRecordId" gorm:"type:int;not null;comment:鎿嶄綔id"`       //鎿嶄綔id
-
-		ProductId   int             `json:"productId" gorm:"type:int;not null;comment:浜у搧id"`            //浜у搧id
-		ProductName string          `json:"productName" gorm:"type:varchar(255);not null;comment:浜у搧鍚嶇О"` //浜у搧鍚嶇О
-		Quantity    decimal.Decimal `json:"quantity" gorm:"type:decimal(20,2);not null;comment:鏁伴噺"`     //鏁伴噺
-
-		FromLocationId int      `json:"fromLocationId"   gorm:"type:int;not null;comment:婧愪綅缃甶d"` //婧愪綅缃甶d
-		FromLocation   Location `json:"fromLocation"     gorm:"foreignKey:FromLocationId"`       //婧愪綅缃�
-		ToLocationId   int      `json:"toLocationId"  gorm:"type:int;not null;comment:鐩爣浣嶇疆id"`   //鐩爣浣嶇疆id
-		ToLocation     Location `json:"toLocation"    gorm:"foreignKey:ToLocationId"`            //鐩爣浣嶇疆
+		Number            string                     `json:"number" gorm:"column:number;type:varchar(255)"`                  //鍗曞彿
+		BaseOperationType constvar.BaseOperationType `json:"baseOperationType" gorm:"type:tinyint;not null;comment:鍩虹浣滀笟绫诲瀷"`  //鍩虹浣滀笟绫诲瀷
+		OperationTypeId   int                        `json:"operationTypeId" gorm:"type:int;not null;comment:浣滀笟绫诲瀷id"`        //浣滀笟绫诲瀷id
+		OperationTypeName string                     `json:"operationTypeName" gorm:"type:int;not null;comment:浣滀笟绫诲瀷鍚嶇О"`      //浣滀笟绫诲瀷鍚嶇О
+		OperationId       int                        `json:"operationRecordId" gorm:"type:int;not null;comment:鎿嶄綔id"`        //鎿嶄綔id
+		ProductId         int                        `json:"productId" gorm:"type:int;not null;comment:浜у搧id"`                //浜у搧id
+		ProductName       string                     `json:"productName" gorm:"type:varchar(255);not null;comment:浜у搧鍚嶇О"`     //浜у搧鍚嶇О
+		Amount            decimal.Decimal            `json:"amount" gorm:"type:decimal(20,2);not null;comment:鏁伴噺"`           //鏁伴噺
+		Unit              string                     `json:"unit" gorm:"type:char(10);not null;comment:鍗曚綅"`                  //鍗曚綅
+		Weight            string                     `json:"weight" gorm:"type:decimal(20,2);not null;comment:閲嶉噺"`           //閲嶉噺
+		FromLocationId    int                        `json:"fromLocationId"   gorm:"type:int;not null;comment:婧愪綅缃甶d"`        //婧愪綅缃甶d
+		FromLocation      string                     `json:"fromLocation"     gorm:"type:varchar(255);not null;comment:婧愪綅缃�"` //婧愪綅缃�
+		ToLocationId      int                        `json:"toLocationId"  gorm:"type:int;not null;comment:鐩爣浣嶇疆id"`          //鐩爣浣嶇疆id
+		ToLocation        string                     `json:"toLocation"    gorm:"type:varchar(255);not null;comment:鐩爣浣嶇疆"`   //鐩爣浣嶇疆
+		Operator          string                     `json:"operator"    gorm:"type:varchar(255);not null;comment:鎿嶄綔鑰�"`      //鎿嶄綔鑰�
 	}
 
 	MoveHistorySearch struct {

--
Gitblit v1.8.0