| | |
| | | if (string.IsNullOrWhiteSpace(stockPalletCode)) |
| | | return WebResponseContent.Instance.Error("源托盘号不能为空"); |
| | | |
| | | stockInfo = await _stockInfoService.GetStockInfoAsync(stockPalletCode); |
| | | stockInfo = await _stockInfoService.Repository.QueryDataNavFirstAsync(x => x.PalletCode == stockPalletCode); |
| | | if (stockInfo == null) |
| | | return WebResponseContent.Instance.Error($"托盘[{stockPalletCode}]库存不存在"); |
| | | |
| | |
| | | return WebResponseContent.Instance.Error($"机械手{taskName}任务创建失败"); |
| | | |
| | | var wmstaskDto = _mapper.Map<WMSTaskDTO>(task) ?? new WMSTaskDTO(); |
| | | wmstaskDto.TaskQuantity = stock.Details?.Sum(d => d.Quantity) ?? 0; |
| | | return WebResponseContent.Instance.OK($"机械手{taskName}任务创建成功", wmstaskDto); |
| | | } |
| | | catch (Exception ex) |