| | |
| | | /// </summary> |
| | | /// <param name="task">任务实体。</param> |
| | | /// <param name="source">WMS任务原始数据。</param> |
| | | public void InitializeOnReceive([NotNull] Dt_Task task, [NotNull] WMSTaskDTO source) |
| | | public WebResponseContent InitializeOnReceive([NotNull] Dt_Task task, [NotNull] WMSTaskDTO source) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | Dt_Router routers = _routerService.QueryNextRoute(source.SourceAddress); |
| | | if (routers.IsNullOrEmpty()) |
| | | { |
| | | return; |
| | | return content.Error("未找到路由信息"); |
| | | } |
| | | |
| | | task.TaskStatus = (int)TaskInStatusEnum.InNew; |
| | | task.CurrentAddress = source.SourceAddress; |
| | | task.NextAddress = routers.ChildPosi; |
| | | |
| | | return content.OK(); |
| | | } |
| | | |
| | | /// <summary> |