huangxiaoqiang
2026-03-31 990afb24199ef1f7a4648728ac28ed74394e459c
Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskController.cs
@@ -1,4 +1,8 @@
using WIDESEA_DTO;
using WIDESEA_Core.BaseRepository;
using WIDESEA_DTO;
using WIDESEA_IStorageBasicRepository;
using WIDESEA_IStorageTaskRepository;
using WIDESEAWCS_QuartzJob.Models;
namespace WIDESEA_WMSServer.Controllers;
@@ -12,14 +16,18 @@
    private readonly IHttpContextAccessor _httpContextAccessor;
    private readonly IDt_TaskService _taskService;
    private readonly ILocationInfoService _locationService;
    private readonly ILocationInfoRepository _locationRepository;
    private readonly IDt_TaskRepository BaseDal;
    public TaskController(IDt_TaskService taskService,
        IHttpContextAccessor httpContextAccessor,
        ILocationInfoService locationService) : base(taskService)
        ILocationInfoService locationService, ILocationInfoRepository locationInfoRepository,IDt_TaskRepository repository) : base(taskService)
    {
        _httpContextAccessor = httpContextAccessor;
        _taskService = taskService;
        _locationService = locationService;
        _locationRepository = locationInfoRepository;
        BaseDal = repository;
    }
    /// <summary>
@@ -214,4 +222,66 @@
    {
        return await Service.SetEmptyOutbyInToOutOneAsync(input);
    }
    [HttpPost, AllowAnonymous, Route("GetTaskInfo")]
    public WebResponseContent GetTaskInfo()
    {
        return Service.GetTaskInfo();
    }
    [HttpPost, AllowAnonymous, Route("GetStockInfo")]
    public WebResponseContent GetStockInfo()
    {
        return Service.GetStockInfo();
    }
    /// <summary>
    /// 获取库存信息
    /// </summary>
    /// <returns></returns>
    [HttpPost, AllowAnonymous, Route("GetStockQuantity")]
    public WebResponseContent GetStockQuantity()
    {
        return Service.GetStockQuantity();
    }
    [HttpPost, AllowAnonymous, Route("Getproductionvolume")]
    public WebResponseContent Getproductionvolume()
    {
        return Service.Getproductionvolume();
    }
    [HttpPost, AllowAnonymous, Route("Getoutput")]
    public WebResponseContent Getoutput()
    {
        return Service.Getoutput();
    }
    [HttpPost, AllowAnonymous, Route("GetTimeoutgetPageData")]
    public WebResponseContent GetTimeout()
    {
        return Service.GetTimeout();
    }
    /// <summary>
    /// 产量统计
    /// </summary>
    /// <returns></returns>
    [HttpPost,AllowAnonymous,Route("GetproductionstatisticsgetPageData")]
    public WebResponseContent Getproductionstatistics()
    {
        return Service.Getproductionstatistics();
    }
    /// <summary>
    /// 获取不是空闲以及有货的全部货位
    /// </summary>
    /// <returns></returns>
    [HttpPost, AllowAnonymous, Route("LocationStatusgetPageData")]
    public WebResponseContent LocationStatus()
    {
        return Service.GetLocationStatus();
    }
    [HttpPost, AllowAnonymous, Route("GetRoadWayAsync")]
    public async Task<string> GetRoadWayAsync(List<string> process)
    {
        return await Service.GetRoadWayAsync(process);
    }
}