fix: 无法删除行程的bug
This commit is contained in:
parent
5dfa88e679
commit
3d5ab71ae6
|
@ -228,11 +228,7 @@ public class OrderApplicationService {
|
||||||
if (routeOrder != null) {
|
if (routeOrder != null) {
|
||||||
routeOrder.reloadStatus();
|
routeOrder.reloadStatus();
|
||||||
routeOrder.deleteLeg(legNo);
|
routeOrder.deleteLeg(legNo);
|
||||||
if (!routeOrder.getApprovalStatusCode().equals(APPROVAL_EVENT_PREPARE)) {
|
return routeRepository.saveTempRouteOrder(routeOrder, 24L);
|
||||||
return routeRepository.saveTempRouteOrder(routeOrder, 24L);
|
|
||||||
} else {
|
|
||||||
return routeRepository.save(routeOrder);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue