fix: 无法删除行程的bug

This commit is contained in:
lulz1 2024-06-25 09:54:41 +08:00
parent 89e91d9d39
commit 5dfa88e679
1 changed files with 2 additions and 1 deletions

View File

@ -113,7 +113,8 @@ public class LegDomainService {
RouteOrder routeOrder = null;
if (legNo.contains("&")) {
String[] split = legNo.split("&");
routeOrder = routeRepository.findTempRouteOrderBySysCodeAndBillCode(split[1], split[2]);
routeOrder = routeRepository.findTempRouteOrderBySysCodeAndBillCode(split[1], split[2])
.reloadStatus();
}
if (routeOrder != null && routeOrder.getOrderStatus().equals(ORDER_STATUS_PREPARE)){
routeOrder.deleteLeg(legNo);