From f72fb9ca31fbf27b4abbc0156e60ea162f58df81 Mon Sep 17 00:00:00 2001
From: dsmzx <dsmzx@123.com>
Date: 星期四, 13 六月 2024 15:30:50 +0800
Subject: [PATCH] 出入库调拨产品明细增加备注字段(同步产品的备注字段)

---
 request/operation.go |   30 ++++++++++++++++++++----------
 1 files changed, 20 insertions(+), 10 deletions(-)

diff --git a/request/operation.go b/request/operation.go
index 2f2050a..43e2b85 100644
--- a/request/operation.go
+++ b/request/operation.go
@@ -18,7 +18,7 @@
 	Details           []*OperationDetails `json:"details"`
 	ContacterID       int                 `json:"contacterID" gorm:"type:int;comment:鑱旂郴浜篒D"`           //鑱旂郴浜篒D-闈炲繀濉�
 	ContacterName     string              `json:"contacterName" gorm:"type:varchar(63);comment:鑱旂郴浜哄鍚�"` //鑱旂郴浜哄鍚�-闈炲繀濉�
-	CompanyID         int                 `json:"companyID" gorm:"type:int;comment:鍏徃ID"`              //鍏徃ID-瀹㈡埛
+	CompanyID         string              `json:"companyID"`                                           //鍏徃ID-瀹㈡埛
 	CompanyName       string              `json:"companyName" gorm:"type:varchar(127);comment:鍏徃鍚嶇О"`   //鍏徃鍚嶇О-瀹㈡埛鍚嶇О
 	Comment           string              `json:"comment" gorm:"type:text;comment:澶囨敞"`                 //澶囨敞
 	LogisticCompanyId string              `json:"logisticCompanyId"   gorm:"type:varchar(191);comment:鐗╂祦鍏徃id"`
@@ -30,9 +30,12 @@
 	ReceiverAddr      string              `json:"receiverAddr" gorm:"type:varchar(255);comment:鏀惰揣鍦板潃"`
 	LocationId        int                 `json:"locationId"   gorm:"type:int;not null;comment:婧愪綅缃甶d"`     //婧愪綅缃甶d
 	ToLocationId      int                 `json:"toLocationId"    gorm:"type:int;not null;comment:浠撳簱浣嶇疆id"` //鐩爣浣嶇疆id
-	Manager           string              `json:"manager" gorm:"type:varchar(255);comment:涓荤"`
-	Accountant        string              `json:"accountant" gorm:"type:varchar(255);comment:浼氳"`
-	Custodian         string              `json:"custodian" gorm:"type:varchar(255);comment:淇濈鍛�"`
+	ManagerId         string              `json:"managerId" gorm:"type:varchar(255);comment:涓荤id"`
+	Manager           string              `json:"manager" gorm:"type:varchar(255);comment:涓荤鍚嶇О"`
+	AccountantId      string              `json:"accountantId" gorm:"type:varchar(255);comment:浼氳id"`
+	Accountant        string              `json:"accountant" gorm:"type:varchar(255);comment:浼氳鍚嶇О"`
+	CustodianId       string              `json:"custodianId" gorm:"type:varchar(255);comment:淇濈鍛榠d"`
+	Custodian         string              `json:"custodian" gorm:"type:varchar(255);comment:淇濈鍛樺悕绉�"`
 }
 
 type OperationDetails struct {
@@ -42,8 +45,12 @@
 	Amount decimal.Decimal `json:"amount" gorm:"type:decimal(20,2);not null;comment:鏁伴噺"` //鏁伴噺
 	//Unit        string          `json:"unit" gorm:"type:varchar(31);comment:鍗曚綅"`                    //鍗曚綅
 	//Product models.Material `json:"product" gorm:"foreignKey:ProductId;references:ID"`
-	FromLocationId int `json:"fromLocationId"   gorm:"type:int;not null;comment:婧愪綅缃甶d"` //婧愪綅缃甶d
-	ToLocationId   int `json:"toLocationId"    gorm:"type:int;not null;comment:鐩爣浣嶇疆id"` //鐩爣浣嶇疆id
+	FromLocationId   int             `json:"fromLocationId"   gorm:"type:int;not null;comment:婧愪綅缃甶d"` //婧愪綅缃甶d
+	ToLocationId     int             `json:"toLocationId"    gorm:"type:int;not null;comment:鐩爣浣嶇疆id"` //鐩爣浣嶇疆id
+	TotalGrossWeight decimal.Decimal `json:"totalGrossWeight" gorm:"type:decimal(20,3);comment:鎬绘瘺閲�"`  //鎬绘瘺閲�
+	TotalNetWeight   decimal.Decimal `json:"totalNetWeight" gorm:"type:decimal(20,3);comment:鎬诲噣閲�"`    //鎬诲噣閲�
+	AuxiliaryAmount  decimal.Decimal `json:"auxiliaryAmount" gorm:"type:decimal(20,3);comment:杈呭姪鏁伴噺"`  //杈呭姪鏁伴噺
+	AuxiliaryUnit    string          `json:"auxiliaryUnit" gorm:"type:varchar(191);comment:杈呭姪鍗曚綅"`     //杈呭姪鍗曚綅
 }
 
 type OperationList struct {
@@ -66,7 +73,7 @@
 	Details           []*OperationDetails        `json:"details"`
 	ContacterID       int                        `json:"contacterID" gorm:"type:int;comment:鑱旂郴浜篒D"`           //鑱旂郴浜篒D-闈炲繀濉�
 	ContacterName     string                     `json:"contacterName" gorm:"type:varchar(63);comment:鑱旂郴浜哄鍚�"` //鑱旂郴浜哄鍚�-闈炲繀濉�
-	CompanyID         int                        `json:"companyID" gorm:"type:int;comment:鍏徃ID"`              //鍏徃ID-瀹㈡埛
+	CompanyID         string                     `json:"companyID"`                                           //鍏徃ID-瀹㈡埛
 	CompanyName       string                     `json:"companyName" gorm:"type:varchar(127);comment:鍏徃鍚嶇О"`   //鍏徃鍚嶇О-瀹㈡埛鍚嶇О
 	Comment           string                     `json:"comment" gorm:"type:text;comment:澶囨敞"`                 //澶囨敞
 	BaseOperationType constvar.BaseOperationType `json:"baseOperationType"`                                   //鍩虹浣滀笟绫诲瀷
@@ -79,9 +86,12 @@
 	ReceiverAddr      string                     `json:"receiverAddr" gorm:"type:varchar(255);comment:鏀惰揣鍦板潃"`
 	LocationId        int                        `json:"locationId"   gorm:"type:int;not null;comment:婧愪綅缃甶d"`     //婧愪綅缃甶d
 	ToLocationId      int                        `json:"toLocationId"    gorm:"type:int;not null;comment:浠撳簱浣嶇疆id"` //鐩爣浣嶇疆id
-	Manager           string                     `json:"manager" gorm:"type:varchar(255);comment:涓荤"`
-	Accountant        string                     `json:"accountant" gorm:"type:varchar(255);comment:浼氳"`
-	Custodian         string                     `json:"custodian" gorm:"type:varchar(255);comment:淇濈鍛�"`
+	ManagerId         string                     `json:"managerId" gorm:"type:varchar(255);comment:涓荤id"`
+	Manager           string                     `json:"manager" gorm:"type:varchar(255);comment:涓荤鍚嶇О"`
+	AccountantId      string                     `json:"accountantId" gorm:"type:varchar(255);comment:浼氳id"`
+	Accountant        string                     `json:"accountant" gorm:"type:varchar(255);comment:浼氳鍚嶇О"`
+	CustodianId       string                     `json:"custodianId" gorm:"type:varchar(255);comment:淇濈鍛榠d"`
+	Custodian         string                     `json:"custodian" gorm:"type:varchar(255);comment:淇濈鍛樺悕绉�"`
 }
 
 type OperationAllList struct {

--
Gitblit v1.8.0