duyongjia
2024-12-27 b879053cc8414be35ea60e4c1667039053e3f6e5
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs
@@ -89,6 +89,31 @@
            return content;
        }
        /// <summary>
        /// ç‰©æ–™å›žåº“
        /// </summary>
        /// <param name="stationCode">起始地址</param>
        /// <param name="palletCode">托盘编号</param>
        /// <returns>返回处理结果</returns>
        public WebResponseContent ReturnInboundRequest(string stationCode, string palletCode)
        {
            WebResponseContent content = new WebResponseContent();
            try
            {
                Dt_StockInfo stockInfo = _stockService.StockInfoService.Repository.GetStockInfo(palletCode);
                (bool, string) result = CheckRequestInbound(stationCode, palletCode, true, stockInfo);
                if (!result.Item1) return content = WebResponseContent.Instance.Error(result.Item2);
                content = AssignLocUpdateData(stationCode, TaskTypeEnum.PalletReturnInbound.ObjToInt(), palletCode, true, stockInfo);
            }
            catch (Exception ex)
            {
                content = WebResponseContent.Instance.Error($"{ex.Message}");
            }
            return content;
        }
        /// <summary>
        /// å…¥åº“分配货位及处理数据
        /// </summary>
@@ -121,7 +146,7 @@
                        TaskStatus = InTaskStatusEnum.InNew.ObjToInt(),
                        TaskType = taskType,
                        Depth= locationInfo.Depth,
                        Creater="WMS"
                        Creater="System"
                    };
                    BaseDal.AddData(task);
                    int beforeStatus = locationInfo.LocationStatus;