fix(firstleg): refresh inbound picking progress after task completion

This commit is contained in:
2026-09-30 11:03:47 +08:00
parent f87caf9dd1
commit e5832d5c67
4 changed files with 44 additions and 1 deletions
@@ -690,7 +690,6 @@ public class LoadingPickService {
}
runCompletionStage("PLAN_COMPLETE", () -> loadingListService.finishFromPda(task.getLoadingPlanId(), taskId,
command.getOperatorId(), command.getOperatorName()));
repository.syncInboundProjections(taskId, command.getOperatorId(), command.getOperatorName());
runCompletionStage("COMPLETED_EVENT", () -> loadingListService.publishCompletedEvent(task.getLoadingPlanId()));
for (GroupSnapshot group : taskGroups) {
runCompletionStage("COLOAD_CONSUME", () -> coloadGroups.consumeWholeGroup(group.groupId(),
@@ -703,6 +702,7 @@ public class LoadingPickService {
&& repository.completeAccepted(taskId, command.getOperatorId(), command.getOperatorName()) != 1) {
throw new CompletionProcessingException("TASK_FINALIZE", conflict("PDA任务完成状态已变化"));
}
repository.syncInboundProjections(taskId, command.getOperatorId(), command.getOperatorName());
if (!completionCommands.complete(command.getId(), worker)) {
throw new CompletionProcessingException("COMMAND_FINALIZE", conflict("装柜完成命令租约已变化"));
}