From 595b44f79c7580b3d95c63194b1df4f00600f926 Mon Sep 17 00:00:00 2001
From: xiazhengtongxue <133085197+xiazhengtongxue@users.noreply.github.com>
Date: 星期六, 18 四月 2026 15:08:14 +0800
Subject: [PATCH] Revert "fix(WMS): 修复货位状态变动记录"

---
 Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Dashboard/DashboardController.cs |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Dashboard/DashboardController.cs b/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Dashboard/DashboardController.cs
index 0d6498d..cd8bcce 100644
--- a/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Dashboard/DashboardController.cs
+++ b/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Dashboard/DashboardController.cs
@@ -1,3 +1,4 @@
+using Microsoft.AspNetCore.Authorization;
 using Microsoft.AspNetCore.Mvc;
 using SqlSugar;
 using WIDESEA_Core;
@@ -22,7 +23,7 @@
         /// <summary>
         /// 鎬昏鏁版嵁
         /// </summary>
-        [HttpGet("Overview")]
+        [HttpGet("Overview"), AllowAnonymous]
         public async Task<WebResponseContent> Overview()
         {
             try
@@ -76,7 +77,7 @@
         /// SqlSugar 鐨� GroupBy 涓嶆敮鎸佸 .Date 杩欐牱鐨勮绠楀垪鐩存帴鐢熸垚 SQL GROUP BY锛�
         /// 鍥犳閲囩敤姝ゆ柟寮忎互纭繚璺ㄦ暟鎹簱鍏煎鎬с��
         /// </remarks>
-        [HttpGet("DailyStats")]
+        [HttpGet("DailyStats"), AllowAnonymous]
         public async Task<WebResponseContent> DailyStats([FromQuery] int days = 30)
         {
             try
@@ -117,7 +118,7 @@
         /// 娉ㄦ剰锛氭暟鎹湪 SQL 灞傝繃婊ゅ悗锛屽湪搴旂敤灞傛寜 ISO 8601 鍛ㄩ敭鍒嗙粍銆�
         /// 鍛ㄩ敭涓� "YYYY-Www" 鏍煎紡锛屾棤娉曠洿鎺ュ湪 SQL 灞傜敤 GROUP BY 瀹炵幇銆�
         /// </remarks>
-        [HttpGet("WeeklyStats")]
+        [HttpGet("WeeklyStats"), AllowAnonymous]
         public async Task<WebResponseContent> WeeklyStats([FromQuery] int weeks = 12)
         {
             try
@@ -168,7 +169,7 @@
         /// SqlSugar 鐨� GroupBy 涓嶆敮鎸佸尶鍚嶅璞� (Year, Month) 鐩存帴鏄犲皠鍒� SQL GROUP BY锛�
         /// 鍥犳閲囩敤姝ゆ柟寮忎互纭繚璺ㄦ暟鎹簱鍏煎鎬с��
         /// </remarks>
-        [HttpGet("MonthlyStats")]
+        [HttpGet("MonthlyStats"), AllowAnonymous]
         public async Task<WebResponseContent> MonthlyStats([FromQuery] int months = 12)
         {
             try
@@ -205,7 +206,7 @@
         /// <summary>
         /// 搴撳瓨搴撻緞鍒嗗竷
         /// </summary>
-        [HttpGet("StockAgeDistribution")]
+        [HttpGet("StockAgeDistribution"), AllowAnonymous]
         public async Task<WebResponseContent> StockAgeDistribution()
         {
             try
@@ -235,7 +236,7 @@
         /// <remarks>
         /// 浣跨敤 SQL GROUP BY 鍦ㄦ暟鎹簱灞傞潰鑱氬悎锛岄伩鍏嶅姞杞藉叏閮ㄥ簱瀛樿褰曞埌鍐呭瓨銆�
         /// </remarks>
-        [HttpGet("StockByWarehouse")]
+        [HttpGet("StockByWarehouse"), AllowAnonymous]
         public async Task<WebResponseContent> StockByWarehouse()
         {
             try

--
Gitblit v1.9.3