This commit is contained in:
2026-08-21 17:58:52 +08:00
parent af97217184
commit 24e4a402a9
7 changed files with 223 additions and 103 deletions
@@ -187,7 +187,10 @@ public class CarrierScheduleQueryService {
}
boolean advanced = advanceActualNode(value, node, request.actualAt(), request.observedAt(),
operatorId, operatorName);
CarrierScheduleQueryEntity after = advanced ? required(id) : value;
if (!advanced && repository.updateState(value, request.expectedVersion(), operatorId, operatorName) != 1) {
throw concurrent();
}
CarrierScheduleQueryEntity after = required(id);
addHistory(id, operation, before.getVersion(), after.getVersion(), request.reason(), before, after,
operatorId, operatorName);
return complete(id, operatorId, key, detail(after));