|
@@ -529,7 +529,7 @@ public class RuleGroupServiceImpl extends ServiceImpl<RuleGroupMapper, RuleGroup
|
|
}
|
|
}
|
|
Long newBid = 0L;
|
|
Long newBid = 0L;
|
|
if ("to".equals(operationType)) {
|
|
if ("to".equals(operationType)) {
|
|
- newBid = Long.valueOf(operationThreshold);
|
|
|
|
|
|
+ newBid = new BigDecimal(operationThreshold).multiply(new BigDecimal(1000 + "")).longValue();
|
|
} else {
|
|
} else {
|
|
newBid = calculatedValue(oldBid, operationType, operationValue, operationThreshold, maxValue, minValue);
|
|
newBid = calculatedValue(oldBid, operationType, operationValue, operationThreshold, maxValue, minValue);
|
|
}
|
|
}
|
|
@@ -551,7 +551,7 @@ public class RuleGroupServiceImpl extends ServiceImpl<RuleGroupMapper, RuleGroup
|
|
}
|
|
}
|
|
Long newBudget = 0L;
|
|
Long newBudget = 0L;
|
|
if ("to".equals(operationType)) {
|
|
if ("to".equals(operationType)) {
|
|
- newBudget = Long.valueOf(operationThreshold);
|
|
|
|
|
|
+ newBudget = new BigDecimal(operationThreshold).multiply(new BigDecimal(1000 + "")).longValue();
|
|
} else {
|
|
} else {
|
|
newBudget = calculatedValue(oldBudget, operationType, operationValue, operationThreshold, maxValue, minValue);
|
|
newBudget = calculatedValue(oldBudget, operationType, operationValue, operationThreshold, maxValue, minValue);
|
|
}
|
|
}
|
|
@@ -601,7 +601,7 @@ public class RuleGroupServiceImpl extends ServiceImpl<RuleGroupMapper, RuleGroup
|
|
}
|
|
}
|
|
Long newBid = 0L;
|
|
Long newBid = 0L;
|
|
if ("to".equals(operationType)) {
|
|
if ("to".equals(operationType)) {
|
|
- newBid = Long.valueOf(operationThreshold);
|
|
|
|
|
|
+ newBid = new BigDecimal(operationThreshold).multiply(new BigDecimal(1000 + "")).longValue();
|
|
} else {
|
|
} else {
|
|
newBid = calculatedValue(new BigDecimal(oldBid.toString()), operationType, operationValue, operationThreshold, maxValue, minValue);
|
|
newBid = calculatedValue(new BigDecimal(oldBid.toString()), operationType, operationValue, operationThreshold, maxValue, minValue);
|
|
}
|
|
}
|
|
@@ -642,7 +642,7 @@ public class RuleGroupServiceImpl extends ServiceImpl<RuleGroupMapper, RuleGroup
|
|
}
|
|
}
|
|
Long newBudget = 0L;
|
|
Long newBudget = 0L;
|
|
if ("to".equals(operationType)) {
|
|
if ("to".equals(operationType)) {
|
|
- newBudget = Long.valueOf(operationThreshold);
|
|
|
|
|
|
+ newBudget = new BigDecimal(operationThreshold).multiply(new BigDecimal(1000 + "")).longValue();
|
|
} else {
|
|
} else {
|
|
newBudget = calculatedValue(new BigDecimal(oldBudget.toString()), operationType, operationValue, operationThreshold, maxValue, minValue);
|
|
newBudget = calculatedValue(new BigDecimal(oldBudget.toString()), operationType, operationValue, operationThreshold, maxValue, minValue);
|
|
}
|
|
}
|