1
huanghongfeng
10 天以前 f49fa4b5027cfdc27b429985d023e8002abcca2e
代码管理/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs
@@ -245,6 +245,17 @@
                            _stockService.StockInfoService.Repository.AddData(dt_Stock);
                        }
                    }
                    /*else if(generate.SourceAddress == "R01-002-042-001-01")
                    {
                        WebResponseContent webResponse= Queryinventory(generate);
                        if (!webResponse.Status)
                        {
                            return content = WebResponseContent.Instance.Error($"缁勭洏澶辫触锛歿webResponse.Message}");
                        }
                    }*/
                    Dt_StockInfo dt_StockInfo = _stockService.StockInfoService.Repository.QueryFirst(x => x.PalletCode == generate.PalletCode && x.StockStatus== (int)StockStatusEmun.缁勭洏鏆傚瓨);
                    if (dt_StockInfo != null)
                    {
@@ -603,8 +614,17 @@
                            {
                                if (dt_StockInfo.StockStatus == (int)StockStatusEmun.缁勭洏鏆傚瓨)
                                {
                                    List<Dt_Task> dt_Tasks= BaseDal.QueryData(x => x.PalletCode.Contains(PalletCodetarget));
                                    if (dt_Tasks.Count > 0)
                                    {
                                        return content = WebResponseContent.Instance.Error($"搴撳瓨宸叉湁璇ユ潯鐮侊紝鏉$爜淇℃伅锛歿generate.PalletCode}");
                                    }
                                    else
                                    {
                                    return content = WebResponseContent.Instance.OK(data: 1);
                                }
                                }
                                else
                                {
                                    return content = WebResponseContent.Instance.Error($"搴撳瓨宸叉湁璇ユ潯鐮侊紝鏉$爜淇℃伅锛歿generate.PalletCode}");