项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_InboundService/InboundOrderService.cs
@@ -96,7 +96,7 @@ item.Unit = purchaseToStockResult.Unit; item.OrderQuantity = purchaseToStockResult.Quantity; } if (model.OrderType != InOrderTypeEnum.Allocat.ObjToInt()) if (model.OrderType != InOrderTypeEnum.AllocatInbound.ObjToInt()) { model.InboundOrderNo = CreateCodeByRule(nameof(RuleCodeEnum.InboundOrderRule)); } 项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundOrderService.cs
@@ -72,7 +72,7 @@ item.MoveQty = moveissueoStockResult.Quantity; } if (model.OrderType != InOrderTypeEnum.Allocat.ObjToInt() || model.OrderType != InOrderTypeEnum.InternalAllocat.ObjToInt()) if (model.OrderType != InOrderTypeEnum.AllocatInbound.ObjToInt() || model.OrderType != InOrderTypeEnum.InternalAllocat.ObjToInt()) { model.OrderNo = CreateCodeByRule(nameof(RuleCodeEnum.OutboundOrderRule)); } 项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundPickingService.cs
@@ -1661,7 +1661,7 @@ if (outboundOrder.OrderType == OutOrderTypeEnum.Allocate.ObjToInt()) { var allocate = _allocateService.Repository.QueryData(x => x.UpperOrderNo == outboundOrder.UpperOrderNo).First(); var feedmodel = new AllocateDto var allocatefeedmodel = new AllocateDto { ReqCode = Guid.NewGuid().ToString(), ReqTime = DateTime.Now.ToString(), @@ -1703,9 +1703,9 @@ }).ToList(); feedmodel.Details = groupedData; allocatefeedmodel.Details = groupedData; var result = await _invokeMESService.FeedbackAllocate(feedmodel); var result = await _invokeMESService.FeedbackAllocate(allocatefeedmodel); if (result != null && result.code == 200) { await _outboundOrderDetailService.Db.Updateable<Dt_OutboundOrderDetail>() 项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs
@@ -277,7 +277,7 @@ if (inboundOrder != null && inboundOrder.OrderStatus == InOrderStatusEnum.鍏ュ簱瀹屾垚.ObjToInt()) { var allocate = _allocateService.Repository.QueryData(x => x.OrderNo == inboundOrder.InboundOrderNo).First(); var feedmodel = new AllocateDto var allocatefeedmodel = new AllocateDto { ReqCode = Guid.NewGuid().ToString(), ReqTime = DateTime.Now.ToString(), @@ -310,9 +310,9 @@ Unit = row.Unit }).ToList() }).ToList(); feedmodel.Details = groupedData; allocatefeedmodel.Details = groupedData; var result = await _invokeMESService.FeedbackAllocate(feedmodel); var result = await _invokeMESService.FeedbackAllocate(allocatefeedmodel); if (result != null && result.code == 200) { _inboundOrderService.Db.Updateable<Dt_InboundOrder>().SetColumns(it => new Dt_InboundOrder { ReturnToMESStatus = 1 }) @@ -609,7 +609,7 @@ if (outboundOrder.OrderType == OutOrderTypeEnum.Allocate.ObjToInt()) { var allocate = _allocateService.Repository.QueryData(x => x.UpperOrderNo == outboundOrder.UpperOrderNo).First(); var feedmodel = new AllocateDto var allocatefeedmodel = new AllocateDto { ReqCode = Guid.NewGuid().ToString(), ReqTime = DateTime.Now.ToString(), @@ -652,10 +652,10 @@ }).ToList() }; feedmodel.Details.Add(detailModel); allocatefeedmodel.Details.Add(detailModel); } var result = await _invokeMESService.FeedbackAllocate(feedmodel); var result = await _invokeMESService.FeedbackAllocate(allocatefeedmodel); if (result != null && result.code == 200) { await _outboundOrderDetailService.Db.Updateable<Dt_OutboundOrderDetail>() 项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/ESSController.cs
@@ -46,7 +46,8 @@ _logger.LogInformation(" ESSController ContainerArrivalReport : CallId={CallId},ContainerCode={ContainerCode},SlotCode={SlotCode}", request.CallId, request.ContainerCode, request.SlotCode); var response = new ApiResponse<ContainerArrivalResponseData> { Code = 1 Code = 1, Data = null, }; @@ -77,6 +78,11 @@ } WebResponseContent result = await _taskService.RequestInboundTask(request.ContainerCode, request.SlotCode); if (result != null && !string.IsNullOrEmpty(result.Message)) { _logger.LogError(" ESSController ContainerArrivalReport RequestInboundTask: Message={Message}", result?.Message); } var cacheOptions = new MemoryCacheEntryOptions { @@ -87,17 +93,23 @@ { Code = 0, Msg = "", Data = new ContainerArrivalResponseData { direction = "100" } Data = null, }; if (result != null && !string.IsNullOrEmpty( result.Message ) && result.Message.Contains("璇ユ墭鐩樺凡鐢熸垚浠诲姟")) { response.Data = new ContainerArrivalResponseData { direction = "100" }; return Ok(response); } if (result != null && result.Status) { response.Data = new ContainerArrivalResponseData { direction = "100" }; return Ok(response); } else