杨前锦
2025-06-13 b7308bba3d7ffad271ce7fc7a93c8c45d76be87d
HH.WCS.Mobox3/HH.WCS.Mobox3.FJJT/api/WmsController.cs
@@ -18,9 +18,7 @@
    {
        /// <summary>
        /// 1.空工装出库
        /// 业务场景:
        /// 1.直连流程初始化,补充空工装
        /// 2.非直连流程,固定站台自动补充空工装
        /// 业务场景:直连流程初始化,补充缓存位的空工装
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
@@ -36,7 +34,7 @@
            }
            catch (BusinessException be)
            {
                responseResult.code = 501;
                responseResult.code = 201;
                responseResult.msg = be.Message;
            }
            catch (Exception ex) 
@@ -45,7 +43,6 @@
                responseResult.msg = $"WMS内部错误,请联系开发人员处理";
                WMSHelper.addAlarmRecord("系统错误", "高", $"WMS内部错误: 空工装出库错误,错误原因:{ex.Message}");
            }
            LogHelper.Info("emptyPalletOutStock 出参:" + JsonConvert.SerializeObject(responseResult), "WMS");
            return responseResult;
        }
@@ -65,25 +62,25 @@
            ResponseResult responseResult = new ResponseResult();
            try
            {
                if (model.signalType == 1)  // 物料下线入库请求
                if (model.signalType == 1)  // 正常物料下线入库请求
                {
                    OffLineRequest request = new OffLineRequest() { loc = model.loc, cntrNo = model.cntrNo, jtNo = model.deviceNo };
                    OffLineRequest request = new OffLineRequest() { loc = model.loc, cntrNo = model.cntrNo, jtNo = model.deviceNo, isNormal = true};
                    responseResult = ApiHelper.offLineProcess(request);
                }
                else if (model.signalType == 3)  // 读码入库请求
                {
                    ReadCodeRequest request = new ReadCodeRequest() { loc = model.loc, cntrNo = model.cntrNo };
                    ReadCodeRequest request = new ReadCodeRequest() { loc = model.loc, cntrNo = model.cntrNo ,taskNo = model.taskNo };
                    responseResult = ApiHelper.readCodeProcess(request);
                }
                else if (model.signalType == 5)  // 异常工装入库请求
                {
                    OffLineRequest request = new OffLineRequest() { loc = model.loc, cntrNo = model.cntrNo, jtNo = model.deviceNo };
                    OffLineRequest request = new OffLineRequest() { loc = model.loc, cntrNo = model.cntrNo, jtNo = model.deviceNo , isNormal = false};
                    responseResult = ApiHelper.offLineProcess(request);
                }
            }
            catch (BusinessException be)
            {
                responseResult.code = 501;
                responseResult.code = 201;
                responseResult.msg = be.Message;
            }
            catch (Exception ex)
@@ -199,11 +196,7 @@
        {
            LogHelper.Info("switchStationAttribute 入参:" + JsonConvert.SerializeObject(model), "WMS");
            ResponseResult result = new ResponseResult();
            var bo = ApiHelper.switchStationAttribute(model);
            if (!bo)
            {
                result.code = 201;
            }
            result = ApiHelper.switchStationAttribute(model);
            LogHelper.Info("switchStationAttribute 出参:" + JsonConvert.SerializeObject(result), "WMS");
            return result;
        }
@@ -230,6 +223,8 @@
        public class LocStateFeedBackModel 
        {
            public string reqId { get; set; }
            public string reqTime { get; set; }
            public string loc_code { get; set; } // 站台编码
            public string type { get; set; } // 请求类型 1 允许取货 2 允许放货
            public string req_no { get; set; } // 站台编码
@@ -237,6 +232,8 @@
        public class SwitchStationAttributeModel
        {
            public string reqId { get; set; }
            public string reqTime { get; set; }
            public string locCode { get; set; } // 站台编码
            public string signalType { get; set; } // 1.agv上料模式 2.人工模式
        }
@@ -249,6 +246,8 @@
        public class OutStockModel
        {
            public string reqId { get; set; }
            public string reqTime { get; set; }
            public string endLocCode { get; set; }
        }
    }