fix: 无法删除行程的bug

This commit is contained in:
lulz1 2024-06-25 11:58:38 +08:00
parent 5dfa88e679
commit 3d5ab71ae6
1 changed files with 1 additions and 5 deletions

View File

@ -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;
} }