1
dengjunjie
2026-03-11 6528710f86a89a0828c90bd43a29ca455e1a30b0
1
已添加1个文件
已修改3个文件
86 ■■■■ 文件已修改
代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/WMS/WMSGetLocationInfo.cs 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_ITaskInfoService/ITaskService.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/WMS/WMSController.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs 51 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
´úÂë¹ÜÀí/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/WMS/WMSGetLocationInfo.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WIDESEAWCS_DTO.WMS
{
    /// <summary>
    /// åº“位信息查询
    /// </summary>
    public class WMSGetLocationInfo
    {
        /// <summary>
        /// åº“区编号
        /// </summary>
        public string AreaCode { get; set; }
        /// <summary>
        /// 1:成品库
        /// 2:面料库
        /// 3:输送线缓存
        /// 4:裁剪库
        ///  5:1楼出入库站台
        /// </summary>
        public int WarehouseId { get; set; }
    }
}
´úÂë¹ÜÀí/WCS/WIDESEAWCS_Server/WIDESEAWCS_ITaskInfoService/ITaskService.cs
@@ -236,7 +236,7 @@
        /// </summary>
        /// <param name="AreaCode">区域号</param>
        /// <returns></returns>
        WebResponseContent LocationInquiry(string AreaCode);
        WebResponseContent LocationInquiry(WMSGetLocationInfo getLocationInfo);
        /// <summary>
´úÂë¹ÜÀí/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/WMS/WMSController.cs
@@ -100,9 +100,9 @@
        /// <param name="AreaCode">区域号</param>
        /// <returns></returns>
        [HttpGet, HttpPost, Route("QueryStation"), AllowAnonymous]
        public WMSReturn QueryStation(string AreaCode)
        public WMSReturn QueryStation(WMSGetLocationInfo getLocationInfo)
        {
            WebResponseContent content = _taskService.LocationInquiry(AreaCode);
            WebResponseContent content = _taskService.LocationInquiry(getLocationInfo);
            return WMSReturnMethod.ReturnWMS(content);
        }
    }
´úÂë¹ÜÀí/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs
@@ -148,11 +148,11 @@
                                objects.Add(content.Data);
                                break;
                            case (int)TaskTypeEnum.CPInbound:
                                content= CreateRGVNewInTask(task, item.taskType);
                                content = CreateRGVNewInTask(task, item.taskType);
                                objects.Add(content.Data);
                                break;
                            case (int)TaskTypeEnum.CPOutbound:
                                content= CreateRGVNewOutTask(task, item.taskType);
                                content = CreateRGVNewOutTask(task, item.taskType);
                                objects.Add(content.Data);
                                break;
                            case (int)TaskTypeEnum.CJInbound:
@@ -1067,14 +1067,51 @@
        /// <param name="AreaCode"></param>
        /// <returns></returns>
        /// <exception cref="NotImplementedException">区域号</exception>
        public WebResponseContent LocationInquiry(string AreaCode)
        public WebResponseContent LocationInquiry(WMSGetLocationInfo getLocationInfo)
        {
            if (AreaCode == null)
            WebResponseContent content = new WebResponseContent();
            List<object> list = new List<object>();
            try
            {
                //查询输送线空托缓存信息时返回空位数量
            }
            return WebResponseContent.Instance.OK();
                if (getLocationInfo == null) throw new Exception("请求参数不能为空!");
                if (getLocationInfo.AreaCode == null) throw new Exception("库区编号不能为空!");
                if (getLocationInfo.WarehouseId == 0) throw new Exception("仓库ID不能为空!");
                if (getLocationInfo.WarehouseId == 1)
                {
                    List<Dt_RGVLocationInfo> rGVLocationInfos = _rGVLocationInfoService.Repository.QueryData(x => x.WarehouseId == getLocationInfo.AreaCode.ObjToInt());
                    foreach (var item in rGVLocationInfos)
                    {
                        list.Add(new
                        {
                            LoctionCode = item.LocationCode,
                            LocationStatus = item.LocationStatus,
                            EnableStatus = item.EnableStatus
                        });
                    }
                    content.Data = list;
                }
                else if (getLocationInfo.WarehouseId == 2)
                {
                }
                else if (getLocationInfo.WarehouseId == 3)
                {
                }
                else if (getLocationInfo.WarehouseId == 4)
                {
                }
                else if (getLocationInfo.WarehouseId == 5)
                {
                }
            }
            catch (Exception ex)
            {
                content.Error(ex.Message);
            }
            return content;
        }