From 91d7ca06128f996844aa7d2d691d083c944bdf1d Mon Sep 17 00:00:00 2001 From: lishihai <dslsh@dscom> Date: 星期三, 03 七月 2024 17:22:16 +0800 Subject: [PATCH] 导入物料/产品->新模版BUG修复 --- request/product_request.go | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/request/product_request.go b/request/product_request.go index c48f3c0..e9e10a1 100644 --- a/request/product_request.go +++ b/request/product_request.go @@ -24,6 +24,7 @@ ToLocationId int `json:"toLocationId"` SourceNumber string `json:"sourceNumber"` //Unit string `json:"unit"` + Number string `json:"number"` } type QueryDisuseList struct { @@ -49,3 +50,22 @@ ProductId string `json:"productId"` LocationId int `json:"locationId"` } + +type ProductStatistics struct { + TotalAmount decimal.Decimal `gorm:"column:total_amount"` + BaseOperationType constvar.BaseOperationType `gorm:"column:base_operation_type"` //鍩虹浣滀笟绫诲瀷 +} + +type ProductStatisticsAmount struct { + ProductId string `gorm:"column:product_id"` + TotalAmount decimal.Decimal `gorm:"column:total_amount"` +} + +type UnitDict struct { + Name string `gorm:"unique;type:varchar(191);not null;comment:鍚嶇О" json:"name"` + IsDefault bool `gorm:"type:tinyint(1);comment:鏄惁榛樿" json:"isDefault"` +} + +type SaveUnitDict struct { + Data []*UnitDict `json:"data"` +} -- Gitblit v1.8.0