打车里程数字段添加

This commit is contained in:
dengwc 2024-03-19 21:05:48 +08:00
parent 1371ce9c42
commit 2491d4f8fc
2 changed files with 4 additions and 0 deletions

View File

@ -193,6 +193,7 @@ public class OrderDetailQuery {
CarOrderDetailDto orderDetailDto = CarOrderDetailDto.copyFrom(carOrderDetail);
RouteOrder routeOrder = routeRepository.queryById(orderDetail.getRouteId());
orderDetailDto.setApplicantId(routeOrder.getUserId());
orderDetailDto.setMiles(carOrderDetail.getMileage());//打车里程数映射
return orderDetailDto;
}
return null;

View File

@ -88,6 +88,9 @@ public class CarOrderDetailDto implements Serializable {
// 里程数
private String mileage;
// 打车的里程数
private String miles;
// 订单总额(含前收服务费)
private String orderAmount;