From 611992b818b4a43cb3c1c4a5042b582313c37ff3 Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期三, 15 十一月 2023 17:01:43 +0800
Subject: [PATCH] 报废数量bug

---
 controllers/product_controller.go |    2 +-
 docs/docs.go                      |    2 --
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/controllers/product_controller.go b/controllers/product_controller.go
index 35c9c98..054b4ca 100644
--- a/controllers/product_controller.go
+++ b/controllers/product_controller.go
@@ -575,7 +575,7 @@
 
 				locAmount, res := models.NewLocationProductAmountSearch().
 					SetProductId(v.ID).
-					SetLocationId(operation.ToLocationID).
+					SetLocationId(operation.FromLocationID).
 					FirstRes()
 				if res.Error != nil {
 					return err
diff --git a/docs/docs.go b/docs/docs.go
index 0ec54bf..a77f4a4 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -4635,8 +4635,6 @@
 	Description:      "",
 	InfoInstanceName: "swagger",
 	SwaggerTemplate:  docTemplate,
-	LeftDelim:        "{{",
-	RightDelim:       "}}",
 }
 
 func init() {

--
Gitblit v1.8.0