1
xby-y
2026-01-12 c1eac732fc3ef407d51b76d288f311d2fa43e618
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEA_Core;
using WIDESEA_Core.BaseController;
using WIDESEA_DTO.Stock;
using WIDESEA_IStockService;
using WIDESEA_Model.Models;
 
namespace WIDESEA_WMSServer.Controllers.Stock
{
    /// <summary>
    /// 库存
    /// </summary>
    [Route("api/StockInfo")]
    [ApiController]
    public class StockInfoController : ApiBaseController<IStockInfoService, Dt_StockInfo>
    {
        public StockInfoController(IStockInfoService service) : base(service)
        {
        }
 
        /// <summary>
        /// 获取库存统计数据
        /// </summary>
        /// <returns></returns>
        [HttpPost, Route("GetStockStatistics"), AllowAnonymous]
        public ActionResult GetStockStatistics()
        {
            return Json(Service.GetStockStatistics());
        }
    }
}