From 3abb522a610fa41a8d5570b643d88a23030e56db Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 06 五月 2024 17:24:11 +0800
Subject: [PATCH] 执行月度统计前先删除本月记录,防止重复数据

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

diff --git a/router/router.go b/router/router.go
index 3e6ce21..5a37434 100644
--- a/router/router.go
+++ b/router/router.go
@@ -21,6 +21,7 @@
 
 	urlPrefix := "/api-wms/v1"
 	r.Use(middleware.JWTAuth())
+	r.Use(middleware.VerifyResetPwd())
 
 	// 缁勭粐绠$悊
 	departmentController := new(controllers.DepartmentController)
@@ -93,6 +94,7 @@
 		operationAPI.GET("getSupplierList", operationController.GetSupplierList)
 		operationAPI.GET("getClientList", operationController.GetClientList)
 		operationAPI.POST("listByCondition", operationController.ListByCondition)
+		operationAPI.GET("getPersonnelList", operationController.GetPersonnelList)
 
 	}
 
@@ -120,6 +122,8 @@
 		productAPI.POST("listHistory", productController.ListHistory)      //浜у搧浣嶇疆鍘嗗彶璁板綍
 		productAPI.PUT("cancelDisuse/:id", productController.CancelDisuse) //鍙栨秷鎶ュ簾
 		productAPI.GET("getUserInfo", productController.GetUserInfo)       //鑾峰彇鐧诲綍鐢ㄦ埛淇℃伅
+		productAPI.GET("getUnitInfo", productController.GetUnitInfo)       //鑾峰彇鍗曚綅淇℃伅
+		productAPI.POST("saveUnitDict", productController.SaveUnitDict)    //鏇存柊璁¢噺鍗曚綅瀛楀吀
 
 	}
 
@@ -137,11 +141,12 @@
 	locationProductAmountController := new(controllers.LocationProductAmountController)
 	locationProductAmountAPI := r.Group(urlPrefix + "/locationProductAmount")
 	{
-		locationProductAmountAPI.POST("add", locationProductAmountController.Add)                 //娣诲姞搴撳瓨鐩樼偣淇℃伅
-		locationProductAmountAPI.POST("list", locationProductAmountController.List)               //鏌ョ湅搴撳瓨鐩樼偣鍒楄〃
-		locationProductAmountAPI.POST("update", locationProductAmountController.Update)           //淇敼搴撳瓨鐩樼偣淇℃伅
-		locationProductAmountAPI.POST("finish", locationProductAmountController.Finish)           //搴旂敤銆侀獙璇佸簱瀛樼洏鐐逛俊鎭�
-		locationProductAmountAPI.POST("getRuleList", locationProductAmountController.GetRuleList) //鑾峰彇涓婃灦瑙勫垯
+		locationProductAmountAPI.POST("add", locationProductAmountController.Add)                                           //娣诲姞搴撳瓨鐩樼偣淇℃伅
+		locationProductAmountAPI.POST("list", locationProductAmountController.List)                                         //鏌ョ湅搴撳瓨鐩樼偣鍒楄〃
+		locationProductAmountAPI.POST("update", locationProductAmountController.Update)                                     //淇敼搴撳瓨鐩樼偣淇℃伅
+		locationProductAmountAPI.POST("finish", locationProductAmountController.Finish)                                     //搴旂敤銆侀獙璇佸簱瀛樼洏鐐逛俊鎭�
+		locationProductAmountAPI.POST("getRuleList", locationProductAmountController.GetRuleList)                           //鑾峰彇涓婃灦瑙勫垯
+		locationProductAmountAPI.POST("getLocationProductAmount", locationProductAmountController.GetLocationProductAmount) //鑾峰彇浣嶇疆浜у搧淇℃伅
 	}
 
 	//鎶ヨ〃
@@ -151,6 +156,7 @@
 		reportFormsAPI.POST("getInventoryForms", reportFormsController.GetInventoryForms) //鑾峰彇搴撳瓨鎶ヨ〃
 		reportFormsAPI.POST("getHistory", reportFormsController.GetHistory)               //鑾峰彇搴撳瓨鍘嗗彶
 		reportFormsAPI.POST("getLocationForms", reportFormsController.GetLocationForms)   //鑾峰彇浣嶇疆鎶ヨ〃
+		reportFormsAPI.POST("monthStats", reportFormsController.MonthStats)               //鑾峰彇鏈堝害缁熻鎶ヨ〃
 	}
 
 	//閲嶈璐ц鍒�

--
Gitblit v1.8.0