fix(firstleg): allow corrective evidence after completion failure
This commit is contained in:
+3
-1
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user