wanshenmean
2026-03-30 1a8dc6279c478a1b8e4cea78fa91ee856a720e3a
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using WIDESEA_Core;
using WIDESEA_Core.BaseController;
using WIDESEA_DTO.Basic;
using WIDESEA_IBasicService;
using WIDESEA_Model.Models;
 
namespace WIDESEA_WMSServer.Controllers.Basic
{
    /// <summary>
    /// 货位
    /// </summary>
    [Route("api/LocationInfo")]
    [ApiController]
    public class LocationInfoController : ApiBaseController<ILocationInfoService, Dt_LocationInfo>
    {
        public LocationInfoController(ILocationInfoService service) : base(service)
        {
        }
 
        /// <summary>
        /// 初始化货位
        /// </summary>
        /// <param name="locationInfoByTypeDto"></param>
        /// <returns></returns>
        [HttpGet, HttpPost, Route("InitializationLocation"), AllowAnonymous]
        public async Task<WebResponseContent?> InitializationLocation([FromBody] InitializationLocationDTO locationInfoByTypeDto)
        {
            return Service.InitializationLocation(locationInfoByTypeDto);
        }
 
        /// <summary>
        /// 批量禁用货位
        /// </summary>
        /// <param name="keys"></param>
        /// <returns></returns>
        [HttpGet, HttpPost, Route("LocationDisableStatus"), AllowAnonymous]
        public async Task<WebResponseContent?> LocationDisableStatus([FromBody] int[] keys)
        {
            return Service.LocationDisableStatus(keys);
        }
 
        /// <summary>
        /// 批量启用货位
        /// </summary>
        /// <param name="keys"></param>
        /// <returns></returns>
        [HttpGet, HttpPost, Route("LocationEnableStatus"), AllowAnonymous]
        public async Task<WebResponseContent?> LocationEnableStatus([FromBody] int[] keys)
        {
            return Service.LocationEnableStatus(keys);
        }
 
        /// <summary>
        /// 禁用单个货位
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        [HttpGet, HttpPost, Route("LocationOneDisableStatus"), AllowAnonymous]
        public async Task<WebResponseContent?> LocationDisableStatus([FromBody] int key)
        {
            return Service.LocationDisableStatus(key);
        }
 
        /// <summary>
        /// 启用单个货位
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        [HttpGet, HttpPost, Route("LocationOneEnableStatus"), AllowAnonymous]
        public async Task<WebResponseContent?> LocationEnableStatus([FromBody] int key)
        {
            return Service.LocationEnableStatus(key);
        }
 
        /// <summary>
        /// 获取货位信息
        /// </summary>
        /// <param name="roadwayNo"></param>
        /// <returns></returns>
        [HttpGet, HttpPost, Route("GetLocationInfo"), AllowAnonymous]
        public async Task<Dt_LocationInfo?> GetLocationInfo([FromBody] string roadwayNo)
        {
            return await Service.GetLocationInfo(roadwayNo);
        }
 
        /// <summary>
        /// 移库检查:检查指定任务号的移库任务是否满足移库条件
        /// </summary>
        /// <param name="taskNum"></param>
        /// <returns></returns>
        [HttpGet, HttpPost, Route("TransferCheck"),AllowAnonymous]
        public async Task<WebResponseContent?> TransferCheckAsync([FromBody] int taskNum)
        {
            return await Service.TransferCheckAsync(taskNum);
        }
    }
}