From 73b6baf6af3d88cdcb0e2df7932a9bd96b0b85c5 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 01 七月 2024 22:32:34 +0800
Subject: [PATCH] 月度统计出入库按类型汇总报表定时任务和手动跑任务接口

---
 request/location_product_amount.go |   34 ++++++++++++++++++++++++----------
 1 files changed, 24 insertions(+), 10 deletions(-)

diff --git a/request/location_product_amount.go b/request/location_product_amount.go
index 82a7b48..9b1a386 100644
--- a/request/location_product_amount.go
+++ b/request/location_product_amount.go
@@ -1,26 +1,40 @@
 package request
 
-import "github.com/shopspring/decimal"
+import (
+	"github.com/shopspring/decimal"
+)
+
+type GetList struct {
+	PageInfo
+	Keyword string `json:"keyword"`
+}
 
 type AddLocationProductAmount struct {
-	LocationId       int             `json:"locationId"`
-	ProductId        string          `json:"productId"`
-	Amount           decimal.Decimal `json:"Amount"`           //搴撳瓨鏁伴噺
 	AdjustAmount     decimal.Decimal `json:"adjustAmount" `    //宸��
 	DifferenceAmount decimal.Decimal `json:"differenceAmount"` //璁℃暟鏁伴噺
+	Amount           decimal.Decimal `json:"Amount"`           //搴撳瓨鏁伴噺
+	ProductId        string          `json:"productId"`
+	LocationId       int             `json:"locationId"`
 }
 
 type UpdateLocationProductAmount struct {
 	//LocationProductAmountId int             `json:"locationProductAmountId"` //搴撳瓨鐩樼偣id
-	AdjustAmount     decimal.Decimal `json:"adjustAmount" `    //宸��
-	DifferenceAmount decimal.Decimal `json:"differenceAmount"` //璁℃暟鏁伴噺
-	OperationId      int             `json:"operationId"`      //鍑哄叆搴搃d
-	Amount           decimal.Decimal `json:"Amount"`           //搴撳瓨鏁伴噺
-	ProductId        string          `json:"productId"`        //浜у搧id
+	AdjustAmount      decimal.Decimal `json:"adjustAmount" `     //宸��
+	DifferenceAmount  decimal.Decimal `json:"differenceAmount"`  //璁℃暟鏁伴噺
+	Amount            decimal.Decimal `json:"amount"`            //搴撳瓨鏁伴噺
+	ProductId         string          `json:"productId"`         //浜у搧id
+	OperationId       int             `json:"operationId"`       //鍑哄叆搴搃d
+	LocationId        int             `json:"locationId"`        //浣嶇疆id
+	ProductCategoryId int             `json:"productCategoryId"` //浜у搧绉嶇被id
+}
+
+type GetRuleList struct {
+	LocationId int    `json:"locationId"` //浣嶇疆id
+	ProductId  string `json:"productId"`  //浜у搧id
 }
 
 type FinishLocationProductAmount struct {
-	LocationProductAmountId int    `json:"locationProductAmountId"` //搴撳瓨鐩樼偣id
 	OperationId             int    `json:"operationId"`             //鍑哄叆搴搃d
 	ProductId               string `json:"productId"`               //浜у搧id
+	LocationProductAmountId int    `json:"locationProductAmountId"` //搴撳瓨鐩樼偣id
 }

--
Gitblit v1.8.0