From 34e1e9dbc7a750048c0825b8f91b07ed526ae577 Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期五, 22 九月 2023 15:41:48 +0800
Subject: [PATCH] 1.根据产品获取出入库历史记录

---
 router/router.go |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/router/router.go b/router/router.go
index e727dce..c8905ca 100644
--- a/router/router.go
+++ b/router/router.go
@@ -63,7 +63,7 @@
 		locationAPI.DELETE("deleteLocation/:id", locationController.DeleteLocation)      //鍒犻櫎浣嶇疆
 	}
 
-	// 浣滀笟绫诲瀷
+	// 涓氬姟绫诲瀷
 	operationTypeController := new(controllers.OperationTypeController)
 	operationTypeAPI := r.Group(urlPrefix + "/operationType")
 	{
@@ -79,8 +79,9 @@
 	{
 		operationAPI.GET("operation", operationController.List)
 		operationAPI.POST("operation", operationController.Add)
-		operationAPI.PUT("operation/:id", operationController.Update)
+		operationAPI.POST("update", operationController.Update)
 		operationAPI.DELETE("operation/:id", operationController.Delete)
+		operationAPI.PUT("finish/:id", operationController.Finish)
 	}
 
 	//浜у搧
@@ -98,6 +99,8 @@
 		productAPI.GET("getProductCategoryDetails/:id", productController.GetProductCategoryDetails) //鑾峰彇浜у搧绫诲瀷璇︽儏
 		productAPI.POST("updateProductCategory", productController.UpdateProductCategory)            //淇敼浜у搧绫诲瀷
 		productAPI.DELETE("deleteProductCategory/:id", productController.DeleteProductCategory)      //鍒犻櫎浜у搧绫诲瀷
+
+		productAPI.POST("listOperaton", productController.ListOperation) //鏌ョ湅浜у搧鐨勫巻鍙插嚭鍏ュ簱淇℃伅
 	}
 
 	return r

--
Gitblit v1.8.0