订单新增起步时长
This commit is contained in:
parent
90aaa2a94c
commit
93cf7b6c7e
@ -98,6 +98,11 @@ public class EbikeOrder implements Serializable {
|
||||
*/
|
||||
private Integer paymentMethod;
|
||||
|
||||
/**
|
||||
* 起步时长(分钟
|
||||
*/
|
||||
private Integer baseDurationMinutes;
|
||||
|
||||
/**
|
||||
* 起步费用
|
||||
*/
|
||||
|
||||
@ -100,6 +100,7 @@ public class EbikeOrderServiceImpl extends ServiceImpl<EbikeOrderMapper, EbikeOr
|
||||
.orderType(OrderType.ONCE)
|
||||
.startLocation(orderDto.getStartPoint())
|
||||
.startTime(LocalDateTime.now())
|
||||
.baseDurationMinutes(bikeInfo.getBaseDurationMinutes())
|
||||
.baseFee(bikeInfo.getBaseFee())
|
||||
.durationFee(bikeInfo.getDurationFee())
|
||||
.freeDurationMinutes(bikeInfo.getFreeDurationMinutes())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user