fix(firstleg): allow corrective evidence after completion failure

This commit is contained in:
2026-08-31 18:42:08 +08:00
parent 838bd93bc4
commit 9b09663b2e
2 changed files with 20 additions and 1 deletions
@@ -159,7 +159,9 @@ public class CabinetLoadingEvidenceService {
if (assignment == null || !Objects.equals(assignment.getAssigneeId(), operatorId)) {
throw new BizException(ResultCode.FORBIDDEN, "PDA任务未由当前操作人领取");
}
if (mutable && !"LOADING".equals(task.getTaskStatus())) throw conflict("PDA任务不在装柜作业中,证据不可修改");
if (mutable && !Set.of("LOADING", "COMPLETION_FAILED").contains(task.getTaskStatus())) {
throw conflict("PDA任务不在可补证状态,证据不可修改");
}
return new Scope(task, task.getContainerBookingId());
}