dengjunjie
7 小时以前 a8367fa42d18c40407408c79e8a5fd32cd09f05c
更新WMS接口文档,添加修改出入口站台类型接口,优化接口日志记录方法
已添加2个文件
已删除3个文件
已修改8个文件
97 ■■■■ 文件已修改
代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/ApiInfoService.cs 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/WMS/UpLocationStatusDTO.cs 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/WMS/UpStationTypeDTO.cs 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_ITaskInfoService/ITaskService.cs 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/WMS/WMSController.cs 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/appsettings.json 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
项目资料/与上游系统接口清单/WMS接口对接文档_V1.1.4.docx 补丁 | 查看 | 原始文档 | blame | 历史
项目资料/与上游系统接口清单/WMS接口对接文档_V20260421.docx 补丁 | 查看 | 原始文档 | blame | 历史
项目资料/与上游系统接口清单/WMS接口对接文档_V2026324.docx 补丁 | 查看 | 原始文档 | blame | 历史
项目资料/与上游系统接口清单/WMS接口对接文档_V260318.docx 补丁 | 查看 | 原始文档 | blame | 历史
项目资料/与上游系统接口清单/wms接口文档3-10(1).xlsx 补丁 | 查看 | 原始文档 | blame | 历史
项目资料/与上游系统接口清单/接口地址.xlsx 补丁 | 查看 | 原始文档 | blame | 历史
´úÂë¹ÜÀí/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/ApiInfoService.cs
@@ -10,6 +10,7 @@
using WIDESEAWCS_Core.Helper;
using WIDESEAWCS_DTO;
using WIDESEAWCS_DTO.RGV.FOURBOT;
using WIDESEAWCS_DTO.WMS;
using WIDESEAWCS_IBasicInfoService;
using WIDESEAWCS_Model.Models;
@@ -55,15 +56,24 @@
                }
                else if (apiInfo.Remark.Contains("凯乐士"))
                {
                    GALAXISReturn gALAXISReturn = response.DeserializeObject<GALAXISReturn>();
                    if (gALAXISReturn == null) throw new Exception($"{apiInfo.Remark}响应内容转换实体失败");
                    if (gALAXISReturn.data.returnStatus != 0) throw new Exception(gALAXISReturn.data.returnInfo);
                    content.Data = gALAXISReturn;
                }
                else if (apiInfo.Remark.Contains("海康"))
                {
                    HIKROBOTReturn hIKROBOTReturn = response.DeserializeObject<HIKROBOTReturn>();
                    if (hIKROBOTReturn == null) throw new Exception($"{apiInfo.Remark}响应内容转换实体失败");
                    if (hIKROBOTReturn.code != "SUCCESS") throw new Exception(hIKROBOTReturn.message);
                    content.Data = hIKROBOTReturn;
                }
                else if (apiInfo.Remark.Contains("WMS"))
                {
                    WMSReturn wMSReturn = response.DeserializeObject<WMSReturn>();
                    if (wMSReturn == null) throw new Exception($"{apiInfo.Remark}响应内容转换实体失败");
                    if (wMSReturn.code != 200) throw new Exception(wMSReturn.message);
                    content.Data = wMSReturn;
                }
                content.OK();
            }
´úÂë¹ÜÀí/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/WMS/UpLocationStatusDTO.cs
@@ -6,24 +6,18 @@
namespace WIDESEAWCS_DTO.WMS
{
    public class UpLocationStatusDTO
    public class UpStationTypeDTO
    {
        /// <summary>
        /// ä»“库id
        /// ç«™å°ç±»åž‹
        /// 1入库站台;2出库站台;3出入库站台
        /// </summary>
        public int WarehouseId { get; set; }
        public int stationType { get; set; }
        /// <summary>
        /// ç¦ç”¨çŠ¶æ€ï¼ˆ0 å¯ç”¨ï¼Œ3 ç¦ç”¨ï¼‰
        /// ç«™å°ç¼–号
        /// </summary>
        public int EnableStatus { get; set; }
        /// <summary>
        /// è´§ä½ç¼–号列表
        /// </summary>
        public string[] LocationNubList { get; set; }
        public string stationCode { get; set; }
    }
}
´úÂë¹ÜÀí/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/WMS/UpStationTypeDTO.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
{
    public class UpLocationStatusDTO
    {
        /// <summary>
        /// ä»“库id
        /// </summary>
        public int WarehouseId { get; set; }
        /// <summary>
        /// ç¦ç”¨çŠ¶æ€ï¼ˆ0 å¯ç”¨ï¼Œ3 ç¦ç”¨ï¼‰
        /// </summary>
        public int EnableStatus { get; set; }
        /// <summary>
        /// è´§ä½ç¼–号列表
        /// </summary>
        public string[] LocationNubList { get; set; }
    }
}
´úÂë¹ÜÀí/WCS/WIDESEAWCS_Server/WIDESEAWCS_ITaskInfoService/ITaskService.cs
@@ -338,9 +338,6 @@
        WebResponseContent PLCAlarmtoWMS(string ErrorMsg);
        WebResponseContent UpStationType(UpStationTypeDTO stationTypeDTO);
    }
}
´úÂë¹ÜÀí/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/WMS/WMSController.cs
@@ -47,6 +47,18 @@
        }
        /// <summary>
        /// ä¿®æ”¹å‡ºå…¥å£ç«™å°ç±»åž‹
        /// </summary>
        /// <param name="taskDTOs"></param>
        /// <returns></returns>
        [HttpPost, Route("UpStationType"), AllowAnonymous]
        public WMSReturn UpStationType([FromBody] UpStationTypeDTO stationTypeDTO)
        {
            WebResponseContent content = _taskService.UpStationType(stationTypeDTO);
            return WMSReturnMethod.ReturnWMS(content);
        }
        /// <summary>
        /// å¹³åº“货位上下架容器
        /// </summary>
        /// <param name="taskDTOs"></param>
´úÂë¹ÜÀí/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/appsettings.json
@@ -42,6 +42,7 @@
  "WMS": {
    "ReceiveTask": "WMS下发任务",
    "ContainerRequest": "容器流动请求",
    "UpStationType": "修改出入口站台类型",
    "UpOrDownContainer": "平库货位上下架容器",
    "CancelWMSTask": "WMS取消任务",
    "IQCResult": "外检结果反馈",
´úÂë¹ÜÀí/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs
@@ -1427,6 +1427,20 @@
                _trackloginfoService.AddTrackLog(wMSContainerFlow, content, "容器流动请求", "", "");
            }
        }
        public WebResponseContent UpStationType(UpStationTypeDTO stationTypeDTO)
        {
            try
            {
                Dt_StationManger stationManger = _stationMangerService.Repository.QueryFirst(x => x.StationCode == stationTypeDTO.stationCode) ?? throw new Exception($"未找到站台编号【{stationTypeDTO.stationCode}】信息");
                stationManger.StationType = stationTypeDTO.stationType;
                _stationMangerService.Repository.UpdateData(stationManger);
                return WebResponseContent.Instance.OK();
            }
            catch (Exception ex)
            {
                return WebResponseContent.Instance.Error(ex.Message);
            }
        }
        /// <summary>
        /// è´¨æ£€ç»“果反馈
        /// </summary>
@@ -1889,7 +1903,7 @@
                WMSReturn wMSReturn = response.DeserializeObject<WMSReturn>();
                if (wMSReturn == null) throw new Exception("WMS返回结果转换失败!");
                if (!wMSReturn.success) throw new Exception(wMSReturn.message);
               return content.OK();
                return content.OK();
            }
            catch (Exception ex)
            {
ÏîÄ¿×ÊÁÏ/ÓëÉÏÓÎϵͳ½Ó¿ÚÇåµ¥/WMS½Ó¿Ú¶Ô½ÓÎĵµ_V1.1.4.docx
Binary files differ
ÏîÄ¿×ÊÁÏ/ÓëÉÏÓÎϵͳ½Ó¿ÚÇåµ¥/WMS½Ó¿Ú¶Ô½ÓÎĵµ_V20260421.docx
Binary files differ
ÏîÄ¿×ÊÁÏ/ÓëÉÏÓÎϵͳ½Ó¿ÚÇåµ¥/WMS½Ó¿Ú¶Ô½ÓÎĵµ_V2026324.docx
Binary files differ
ÏîÄ¿×ÊÁÏ/ÓëÉÏÓÎϵͳ½Ó¿ÚÇåµ¥/WMS½Ó¿Ú¶Ô½ÓÎĵµ_V260318.docx
Binary files differ
ÏîÄ¿×ÊÁÏ/ÓëÉÏÓÎϵͳ½Ó¿ÚÇåµ¥/wms½Ó¿ÚÎĵµ3-10(1).xlsx
Binary files differ
ÏîÄ¿×ÊÁÏ/ÓëÉÏÓÎϵͳ½Ó¿ÚÇåµ¥/½Ó¿ÚµØÖ·.xlsx
Binary files differ