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