From 1444c7c800fc042cd99213e901d6ad3722d0f03f Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期三, 27 九月 2023 16:13:53 +0800
Subject: [PATCH] 1.二期一部分代码

---
 models/location_product_amount.go |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/models/location_product_amount.go b/models/location_product_amount.go
index e8e0e7e..c2ee64c 100644
--- a/models/location_product_amount.go
+++ b/models/location_product_amount.go
@@ -14,6 +14,7 @@
 		LocationProductId int             `json:"locationProductId" gorm:"type:int;not null;comment:涓婃灦瑙勫垯id"` //涓婃灦瑙勫垯id
 		LocationProduct   LocationProduct `json:"locationProduct" gorm:"foreignKey:LocationProductId;references:Id"`
 		Amount            decimal.Decimal `json:"amount" gorm:"type:decimal(20,2);not null;comment:搴撳瓨鏁伴噺"` //搴撳瓨鏁伴噺
+		CreateDate        string          `json:"createDate" gorm:"type:varchar(63);comment:鏃ユ湡"`          //鏃ユ湡
 	}
 
 	LocationProductAmountSearch struct {
@@ -27,9 +28,16 @@
 	}
 
 	LocationProductAmountWithOperation struct {
-		LocationProductAmount LocationProductAmount `json:"locationProductAmount"`
-		AdjustAmount          decimal.Decimal       `json:"adjustAmount" gorm:"column:adjust_amount"`
-		DifferenceAmount      decimal.Decimal       `json:"difference_amount"`
+		//LocationProductAmount LocationProductAmount `json:"locationProductAmount"`
+		LocationId       int             `json:"locationId" gorm:"column:location_id"`
+		LocationName     string          `json:"locationName" gorm:"column:location_name"`
+		ProductId        string          `json:"productId" gorm:"column:product_id"`
+		ProductName      string          `json:"productName" gorm:"column:product_name"`
+		Amount           decimal.Decimal `json:"amount" gorm:"column:amount"`
+		Unit             string          `json:"unit" gorm:"column:unit"`
+		CreateDate       string          `json:"createDate" gorm:"column:create_date"`
+		AdjustAmount     decimal.Decimal `json:"adjustAmount" gorm:"column:adjust_amount"`
+		DifferenceAmount decimal.Decimal `json:"differenceAmount" gorm:"-"`
 	}
 )
 

--
Gitblit v1.8.0