From 23663116574fa8f977c1241f98347833a2c28087 Mon Sep 17 00:00:00 2001
From: yinbentan <yinbentan@live.com>
Date: 星期六, 29 六月 2024 18:27:48 +0800
Subject: [PATCH] 仓库盘点bug修改

---
 request/operation.go |   97 +++++++++++++++++++++++++-----------------------
 1 files changed, 50 insertions(+), 47 deletions(-)

diff --git a/request/operation.go b/request/operation.go
index a68aa72..56de42d 100644
--- a/request/operation.go
+++ b/request/operation.go
@@ -14,30 +14,31 @@
 	Status            constvar.OperationStatus `json:"status" gorm:"type:int(11);not null;comment:鐘舵��"`            //鐘舵��
 	//FromLocationId    int                      `json:"fromLocationId"   gorm:"type:int;not null;comment:婧愪綅缃甶d"`   //婧愪綅缃甶d
 	//ToLocationId      int                      `json:"toLocationId"    gorm:"type:int;not null;comment:鐩爣浣嶇疆id"`   //鐩爣浣嶇疆id
-	OperationDate     string                     `json:"operationDate" gorm:"type:varchar(31);comment:瀹夋帓鏃ユ湡"` //瀹夋帓鏃ユ湡
-	Details           []*OperationDetails        `json:"details"`
-	ContacterID       int                        `json:"contacterID" gorm:"type:int;comment:鑱旂郴浜篒D"`           //鑱旂郴浜篒D-闈炲繀濉�
-	ContacterName     string                     `json:"contacterName" gorm:"type:varchar(63);comment:鑱旂郴浜哄鍚�"` //鑱旂郴浜哄鍚�-闈炲繀濉�
-	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"`
-	WaybillNumber     string                     `json:"waybillNumber" gorm:"type:varchar(255);comment:杩愬崟鍙�"`    //杩愬崟鍙�
-	Weight            decimal.Decimal            `gorm:"type:decimal(20,2);comment:閲嶉噺" json:"weight"`           //閲嶉噺
-	LogisticWeight    decimal.Decimal            `gorm:"type:decimal(20,2);comment:鐗╂祦閲嶉噺" json:"logisticWeight"` //鐗╂祦閲嶉噺
-	ReceiverName      string                     `json:"receiverName" gorm:"type:varchar(31);comment:鏀惰揣浜哄鍚�"`
-	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
-	ToLocationId      int                        `json:"toLocationId"    gorm:"type:int;not null;comment:浠撳簱浣嶇疆id"` //鐩爣浣嶇疆id
-	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:淇濈鍛樺悕绉�"`
-	BaseOperationType constvar.BaseOperationType `json:"baseOperationType" gorm:"type:tinyint;not null;comment:鍩虹浣滀笟绫诲瀷"` //鍩虹浣滀笟绫诲瀷 5搴撳瓨鐩樼偣
-	WarehouseId       int                        `json:"warehouseId" gorm:"type:int;not null;comment:浠撳簱id"`             //浠撳簱id
+	OperationDate       string                     `json:"operationDate" gorm:"type:varchar(31);comment:瀹夋帓鏃ユ湡"` //瀹夋帓鏃ユ湡
+	Details             []*OperationDetails        `json:"details"`
+	ContacterID         int                        `json:"contacterID" gorm:"type:int;comment:鑱旂郴浜篒D"`           //鑱旂郴浜篒D-闈炲繀濉�
+	ContacterName       string                     `json:"contacterName" gorm:"type:varchar(63);comment:鑱旂郴浜哄鍚�"` //鑱旂郴浜哄鍚�-闈炲繀濉�
+	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"`
+	WaybillNumber       string                     `json:"waybillNumber" gorm:"type:varchar(255);comment:杩愬崟鍙�"`    //杩愬崟鍙�
+	Weight              decimal.Decimal            `gorm:"type:decimal(20,2);comment:閲嶉噺" json:"weight"`           //閲嶉噺
+	LogisticWeight      decimal.Decimal            `gorm:"type:decimal(20,2);comment:鐗╂祦閲嶉噺" json:"logisticWeight"` //鐗╂祦閲嶉噺
+	ReceiverName        string                     `json:"receiverName" gorm:"type:varchar(31);comment:鏀惰揣浜哄鍚�"`
+	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
+	ToLocationId        int                        `json:"toLocationId"    gorm:"type:int;not null;comment:浠撳簱浣嶇疆id"` //鐩爣浣嶇疆id
+	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:淇濈鍛樺悕绉�"`
+	BaseOperationType   constvar.BaseOperationType `json:"baseOperationType" gorm:"type:tinyint;not null;comment:鍩虹浣滀笟绫诲瀷"` //鍩虹浣滀笟绫诲瀷 5搴撳瓨鐩樼偣
+	WarehouseId         int                        `json:"warehouseId" gorm:"type:int;not null;comment:浠撳簱id"`             //浠撳簱id
+	InventoryDealerType int                        `json:"inventoryDealerType" gorm:"type:varchar(255);comment:璋冩嫧鍑哄叆搴撳垎绫�(瀵瑰簲dict瀛楀吀琛ㄧ殑ID)"`
 }
 
 type OperationDetails struct {
@@ -76,29 +77,31 @@
 	Status            constvar.OperationStatus `json:"status" gorm:"type:int(11);not null;comment:鐘舵��"`            //鐘舵��
 	//FromLocationId    int                        `json:"fromLocationId"   gorm:"type:int;not null;comment:婧愪綅缃甶d"`   //婧愪綅缃甶d
 	//ToLocationId      int                        `json:"toLocationId"    gorm:"type:int;not null;comment:鐩爣浣嶇疆id"`   //鐩爣浣嶇疆id
-	OperationDate     string                     `json:"operationDate" gorm:"type:varchar(31);comment:瀹夋帓鏃ユ湡"` //瀹夋帓鏃ユ湡
-	Details           []*OperationDetails        `json:"details"`
-	ContacterID       int                        `json:"contacterID" gorm:"type:int;comment:鑱旂郴浜篒D"`           //鑱旂郴浜篒D-闈炲繀濉�
-	ContacterName     string                     `json:"contacterName" gorm:"type:varchar(63);comment:鑱旂郴浜哄鍚�"` //鑱旂郴浜哄鍚�-闈炲繀濉�
-	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"`                                   //鍩虹浣滀笟绫诲瀷
-	LogisticCompanyId string                     `json:"logisticCompanyId"   gorm:"type:varchar(191);comment:鐗╂祦鍏徃id"`
-	WaybillNumber     string                     `json:"waybillNumber" gorm:"type:varchar(255);comment:杩愬崟鍙�"`    //杩愬崟鍙�
-	Weight            decimal.Decimal            `gorm:"type:decimal(20,2);comment:閲嶉噺" json:"weight"`           //閲嶉噺
-	LogisticWeight    decimal.Decimal            `gorm:"type:decimal(20,2);comment:鐗╂祦閲嶉噺" json:"logisticWeight"` //鐗╂祦閲嶉噺
-	ReceiverName      string                     `json:"receiverName" gorm:"type:varchar(31);comment:鏀惰揣浜哄鍚�"`
-	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
-	ToLocationId      int                        `json:"toLocationId"    gorm:"type:int;not null;comment:浠撳簱浣嶇疆id"` //鐩爣浣嶇疆id
-	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:淇濈鍛樺悕绉�"`
+	OperationDate       string                     `json:"operationDate" gorm:"type:varchar(31);comment:瀹夋帓鏃ユ湡"` //瀹夋帓鏃ユ湡
+	Details             []*OperationDetails        `json:"details"`
+	ContacterID         int                        `json:"contacterID" gorm:"type:int;comment:鑱旂郴浜篒D"`           //鑱旂郴浜篒D-闈炲繀濉�
+	ContacterName       string                     `json:"contacterName" gorm:"type:varchar(63);comment:鑱旂郴浜哄鍚�"` //鑱旂郴浜哄鍚�-闈炲繀濉�
+	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"`                                   //鍩虹浣滀笟绫诲瀷
+	LogisticCompanyId   string                     `json:"logisticCompanyId"   gorm:"type:varchar(191);comment:鐗╂祦鍏徃id"`
+	WaybillNumber       string                     `json:"waybillNumber" gorm:"type:varchar(255);comment:杩愬崟鍙�"`    //杩愬崟鍙�
+	Weight              decimal.Decimal            `gorm:"type:decimal(20,2);comment:閲嶉噺" json:"weight"`           //閲嶉噺
+	LogisticWeight      decimal.Decimal            `gorm:"type:decimal(20,2);comment:鐗╂祦閲嶉噺" json:"logisticWeight"` //鐗╂祦閲嶉噺
+	ReceiverName        string                     `json:"receiverName" gorm:"type:varchar(31);comment:鏀惰揣浜哄鍚�"`
+	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
+	ToLocationId        int                        `json:"toLocationId"    gorm:"type:int;not null;comment:浠撳簱浣嶇疆id"` //鐩爣浣嶇疆id
+	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:淇濈鍛樺悕绉�"`
+	WarehouseId         int                        `json:"warehouseId" gorm:"type:int;not null;comment:浠撳簱id"` //浠撳簱id
+	InventoryDealerType int                        `json:"inventoryDealerType" gorm:"type:varchar(255);comment:璋冩嫧鍑哄叆搴撳垎绫�(瀵瑰簲dict瀛楀吀琛ㄧ殑ID)"`
 }
 
 type OperationAllList struct {

--
Gitblit v1.8.0