From 738f6c1aa8ba59fb666d347e02b5fb7f70491cf2 Mon Sep 17 00:00:00 2001
From: yinbentan <yinbentan@live.com>
Date: 星期一, 01 七月 2024 09:37:09 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/jialian' into jialian
---
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