From c2be95e83d1597eed8623fdd70a77d617465f91e Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 29 三月 2024 17:04:31 +0800 Subject: [PATCH] 查操作明细增加查询字段 --- request/product_request.go | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/request/product_request.go b/request/product_request.go index c0e7ea7..8402959 100644 --- a/request/product_request.go +++ b/request/product_request.go @@ -24,12 +24,12 @@ ToLocationId int `json:"toLocationId"` SourceNumber string `json:"sourceNumber"` //Unit string `json:"unit"` + Number string `json:"number"` } type QueryDisuseList struct { PageInfo - Number string `json:"number"` - SourceNumber string `json:"sourceNumber"` + Number string `json:"number"` } type UpdateDisuse struct { @@ -44,3 +44,19 @@ OperationDate string `json:"operationDate"` BaseOperationType constvar.BaseOperationType `json:"baseOperationType"` } + +type QueryOperationHistory struct { + PageInfo + 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"` +} -- Gitblit v1.8.0