|
@ -103,9 +103,20 @@ public class ThirdLocationJobAppService |
|
|
{ |
|
|
{ |
|
|
throw new UserFriendlyException($"未找到ID为 {id} 的任务"); |
|
|
throw new UserFriendlyException($"未找到ID为 {id} 的任务"); |
|
|
} |
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
if (thirdLocationJob.JobStatus == EnumJobStatus.Partial) |
|
|
|
|
|
{ |
|
|
await _thirdLocationJobManager.CloseAsync(thirdLocationJob).ConfigureAwait(false); |
|
|
await _thirdLocationJobManager.CloseAsync(thirdLocationJob).ConfigureAwait(false); |
|
|
} |
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
throw new UserFriendlyException($"【{thirdLocationJob.JobStatus.GetDisplayName()}】状态不允许终止"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 根据物品和库位 检查是否存在发料任务
|
|
|
/// 根据物品和库位 检查是否存在发料任务
|
|
|