From 314076388f664f8ce1a1d19c4c9717fe54634e05 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期六, 18 四月 2026 15:51:51 +0800
Subject: [PATCH] Merge branch 'dev' of http://115.159.85.185:8098/r/SuZhouGuanHong/ShanMeiXinNengYuan into dev
---
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