fix:分页排序将已结束的订单放到最后,修复未提交审批的订单查询问题

This commit is contained in:
lulz1 2024-04-20 20:44:07 +08:00
parent ab4dfe60be
commit d6ad52af57
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ public class RouteOrderRes {
res.setEndTime(formatter.format(routeOrder.getEndTime()));
}
if (routeOrder.checkIfHaveTrainLeg()) {
res.setIfHaveTrainLeg("1");
res.setIfHaveTrainLeg("0");
} else {
res.setIfHaveTrainLeg("0");
}

View File

@ -132,7 +132,7 @@ public class OrderController {
if (orderDetailDomainService.syncOrderDetailStatusByRouteId(syncLegData.getRouteId())) {
return Result.Success(SUCCESS);
} else {
return Result.error(SYNC_FAILURE_TRAIN);
return Result.error(FAILURE);
}
}
}