订单新增起步时长

This commit is contained in:
yanglei 2026-01-04 14:47:47 +08:00
parent 90aaa2a94c
commit 93cf7b6c7e
2 changed files with 6 additions and 0 deletions

View File

@ -98,6 +98,11 @@ public class EbikeOrder implements Serializable {
*/ */
private Integer paymentMethod; private Integer paymentMethod;
/**
* 起步时长分钟
*/
private Integer baseDurationMinutes;
/** /**
* 起步费用 * 起步费用
*/ */

View File

@ -100,6 +100,7 @@ public class EbikeOrderServiceImpl extends ServiceImpl<EbikeOrderMapper, EbikeOr
.orderType(OrderType.ONCE) .orderType(OrderType.ONCE)
.startLocation(orderDto.getStartPoint()) .startLocation(orderDto.getStartPoint())
.startTime(LocalDateTime.now()) .startTime(LocalDateTime.now())
.baseDurationMinutes(bikeInfo.getBaseDurationMinutes())
.baseFee(bikeInfo.getBaseFee()) .baseFee(bikeInfo.getBaseFee())
.durationFee(bikeInfo.getDurationFee()) .durationFee(bikeInfo.getDurationFee())
.freeDurationMinutes(bikeInfo.getFreeDurationMinutes()) .freeDurationMinutes(bikeInfo.getFreeDurationMinutes())