mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-17 16:28:41 +08:00
配置充电停车优惠
This commit is contained in:
@@ -711,12 +711,12 @@ public class CommonService {
|
|||||||
boolean flag = false;
|
boolean flag = false;
|
||||||
BigDecimal conditionValue = new BigDecimal(chargeParkingDiscount.getConditionValue());
|
BigDecimal conditionValue = new BigDecimal(chargeParkingDiscount.getConditionValue());
|
||||||
if (StringUtils.equals(conditionType, Constants.ONE)) {
|
if (StringUtils.equals(conditionType, Constants.ONE)) {
|
||||||
if (new BigDecimal(chargingDegree).compareTo(conditionValue) > 0) {
|
if (new BigDecimal(chargingDegree).compareTo(conditionValue) > -1) {
|
||||||
// 发券
|
// 发券
|
||||||
flag = true;
|
flag = true;
|
||||||
}
|
}
|
||||||
} else if (StringUtils.equals(conditionType, Constants.TWO)) {
|
} else if (StringUtils.equals(conditionType, Constants.TWO)) {
|
||||||
if (new BigDecimal(sumChargingTime).compareTo(conditionValue) > 0) {
|
if (new BigDecimal(sumChargingTime).compareTo(conditionValue) > -1) {
|
||||||
// 发券
|
// 发券
|
||||||
flag = true;
|
flag = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user