1.修改明细创建人改成为明细申请人

This commit is contained in:
wanglf3 2024-03-19 10:32:38 +08:00
parent 1a3d3aece4
commit 450f28ffaa
2 changed files with 4 additions and 9 deletions

View File

@ -156,8 +156,7 @@ public class OrderDetailQuery {
}
HotelOrderDetailDto orderDetailDto = HotelOrderDetailDto.copyFrom(hotelOrderDetail);
RouteOrder routeOrder = routeRepository.queryById(orderDetail.getRouteId());
ApproveOrderNo approveOrderNo = routeOrder.getApproveOrderNo();
orderDetailDto.setApplicantId(approveOrderNo.getCreator());
orderDetailDto.setApplicantId(routeOrder.getUserId());
return orderDetailDto;
}
return null;
@ -175,8 +174,7 @@ public class OrderDetailQuery {
}
TrainOrderDetailDto orderDetailDto = TrainOrderDetailDto.copyFrom(trainOrderDetail);
RouteOrder routeOrder = routeRepository.queryById(orderDetail.getRouteId());
ApproveOrderNo approveOrderNo = routeOrder.getApproveOrderNo();
orderDetailDto.setApplicantId(approveOrderNo.getCreator());
orderDetailDto.setApplicantId(routeOrder.getUserId());
return orderDetailDto;
}
return null;
@ -194,8 +192,7 @@ public class OrderDetailQuery {
}
CarOrderDetailDto orderDetailDto = CarOrderDetailDto.copyFrom(carOrderDetail);
RouteOrder routeOrder = routeRepository.queryById(orderDetail.getRouteId());
ApproveOrderNo approveOrderNo = routeOrder.getApproveOrderNo();
orderDetailDto.setApplicantId(approveOrderNo.getCreator());
orderDetailDto.setApplicantId(routeOrder.getUserId());
return orderDetailDto;
}
return null;
@ -225,8 +222,7 @@ public class OrderDetailQuery {
orderDetailDto.setChangedTicketNo(changedTicketNo);
}
RouteOrder routeOrder = routeRepository.queryById(orderDetail.getRouteId());
ApproveOrderNo approveOrderNo = routeOrder.getApproveOrderNo();
orderDetailDto.setApplicantId(approveOrderNo.getCreator());
orderDetailDto.setApplicantId(routeOrder.getUserId());
return orderDetailDto;
}
return null;

View File

@ -46,7 +46,6 @@ public class CTripOrderExtensionFactoryImpl implements OrderExtensionFactory {
CarQuickOrderInfoEntity carQuickOrderInfoEntity = (CarQuickOrderInfoEntity) carOrderDetailData;
CarBasicInfo carBasicInfo = carQuickOrderInfoEntity.getBasicInfo();
String orderNo = carBasicInfo.getOrderId();
String journeyNo = carBasicInfo.getJourneyID();