Commit 0aee4cdd authored by zhangfeng's avatar zhangfeng

feat-505: 订单V值积分计算规则修改

parent 59142450
...@@ -334,11 +334,11 @@ public class OrderVStrategy extends AbstractScoreRuleStrategy { ...@@ -334,11 +334,11 @@ public class OrderVStrategy extends AbstractScoreRuleStrategy {
int wOrV = weightOrVolume.setScale(0, RoundingMode.HALF_UP).intValue(); int wOrV = weightOrVolume.setScale(0, RoundingMode.HALF_UP).intValue();
ScoreRuleOrderVExtraVO.OrderVRule lastRule = orderVRules.get(orderVRules.size() - 1); ScoreRuleOrderVExtraVO.OrderVRule lastRule = orderVRules.get(orderVRules.size() - 1);
if (wOrV >= lastRule.getHigh()) { if (wOrV >= lastRule.getHigh()) {
return lastRule.getScore(); return lastRule.getScore() * wOrV;
} }
for (ScoreRuleOrderVExtraVO.OrderVRule rule : orderVRules) { for (ScoreRuleOrderVExtraVO.OrderVRule rule : orderVRules) {
if (rule.getLow() <= wOrV && wOrV < rule.getHigh()) { if (rule.getLow() <= wOrV && wOrV < rule.getHigh()) {
return rule.getScore(); return rule.getScore() * wOrV;
} }
} }
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment