Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
fe5766db35
@ -243,12 +243,12 @@ public class EbikeOrderImpl extends ServiceImpl<EbikeOrderMapper, EbikeOrder> im
|
|||||||
BigDecimal additionalFee = BigDecimal.ZERO;
|
BigDecimal additionalFee = BigDecimal.ZERO;
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
// 运营区
|
// 运营区
|
||||||
if (Boolean.TRUE.equals(data.getBikeInRegion())) {
|
if (Boolean.FALSE.equals(data.getBikeInRegion())) {
|
||||||
additionalFee = bikeInfo.getOutOfServiceAreaFee() != null ? bikeInfo.getOutOfServiceAreaFee() : BigDecimal.ZERO;
|
additionalFee = bikeInfo.getOutOfServiceAreaFee() != null ? bikeInfo.getOutOfServiceAreaFee() : BigDecimal.ZERO;
|
||||||
} else if (Boolean.TRUE.equals(data.getBikeInParking())) {
|
} else if (Boolean.FALSE.equals(data.getBikeInParking())) {
|
||||||
// 不在运营区内但在停车区内
|
// 不在运营区内但在停车区内
|
||||||
additionalFee = bikeInfo.getOutOfParkingAreaFee() != null ? bikeInfo.getOutOfParkingAreaFee() : BigDecimal.ZERO;
|
additionalFee = bikeInfo.getOutOfParkingAreaFee() != null ? bikeInfo.getOutOfParkingAreaFee() : BigDecimal.ZERO;
|
||||||
} else if (Boolean.TRUE.equals(data.getBikeInNoParking())) {
|
} else if (Boolean.FALSE.equals(data.getBikeInNoParking())) {
|
||||||
// 不在运营区内也不在停车区内,但在禁停区内
|
// 不在运营区内也不在停车区内,但在禁停区内
|
||||||
additionalFee = bikeInfo.getNoParkingZoneFee() != null ? bikeInfo.getNoParkingZoneFee() : BigDecimal.ZERO;
|
additionalFee = bikeInfo.getNoParkingZoneFee() != null ? bikeInfo.getNoParkingZoneFee() : BigDecimal.ZERO;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user