xiazhengtongxue
2026-01-24 a647de5665411f706beddc5e0ff7b3a3daaca4fc
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
using HslCommunication.WebSocket;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using WIDESEA_Common.CommonEnum;
using WIDESEA_Common.LocationEnum;
using WIDESEA_Core;
using WIDESEA_Core.BaseController;
using WIDESEA_Core.Enums;
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="keys"></param>
        /// <returns></returns>
        [HttpPost, Route("LocationEnableStatus")]
        public WebResponseContent LocationEnableStatus([FromBody] int[] keys)
        {
            return Service.LocationEnableStatus(keys); ;
        }
 
        /// <summary>
        /// 禁用货位
        /// </summary>
        /// <param name="keys"></param>
        /// <returns></returns>
        [HttpPost, Route("LocationDisableStatus")]
        public WebResponseContent LocationDisableStatus([FromBody] int[] keys)
        {
            return Service.LocationDisableStatus(keys); ;
        }
        /// <summary>
        /// 一键启动巷道货位
        /// </summary>
        /// <param name="roadwayNo">巷道号</param>
        /// <returns></returns>
        [HttpPost, Route("EnableAllLocationsInRoadway")]
        public WebResponseContent EnableAllLocationsInRoadway(string roadwayNo)
        {
            return Service.EnableAllLocationsInRoadway(roadwayNo);
        }
 
        /// <summary>
        /// 一键禁用巷道货位
        /// </summary>
        /// <param name="roadwayNo">巷道号</param>
        /// <returns></returns>
        [HttpPost, Route("DisableAllLocationsInRoadway")]
        public WebResponseContent DisableAllLocationsInRoadway(string roadwayNo)
        {
            return Service.DisableAllLocationsInRoadway(roadwayNo);
        }
 
        /// <summary>
        /// 获取巷道
        /// </summary>
        [HttpGet, Route("GetArea"), AllowAnonymous]
        public WebResponseContent GetArea()
        {
            return Service.GetArea();
        }
        /// <summary>
        /// 获取货位信息
        /// </summary>
        [HttpGet, Route("GetLocationStatus"), AllowAnonymous]
        public WebResponseContent GetLocationStatus(int WarehouseId, string RoadwayNo)
        {
            return Service.GetLocationStatus(WarehouseId, RoadwayNo);
        }
    }
}