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