Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -112,11 +112,13 @@ public class OrderPayController extends BaseController {
|
|||||||
final BigDecimal batteryRent = goods.getBatteryRent();
|
final BigDecimal batteryRent = goods.getBatteryRent();
|
||||||
// 按新的续费价格
|
// 按新的续费价格
|
||||||
orderPay.setTotalPrice(batteryRent);
|
orderPay.setTotalPrice(batteryRent);
|
||||||
|
if (one != null) {
|
||||||
final long between = DateUtil.between(new Date(), one.getExpirationTime(), DateUnit.DAY, false);
|
final long between = DateUtil.between(new Date(), one.getExpirationTime(), DateUnit.DAY, false);
|
||||||
if (between < 0) {
|
if (between < 0) {
|
||||||
// 有逾期的订单不能享受折扣
|
// 有逾期的订单不能享受折扣
|
||||||
orderPay.setTotalPrice(rent);
|
orderPay.setTotalPrice(rent);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return success(orderPay);
|
return success(orderPay);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user