Commit 52486990 authored by zhangfeng's avatar zhangfeng

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

parent 74a6141c
......@@ -334,11 +334,11 @@ public class OrderVStrategy extends AbstractScoreRuleStrategy {
int wOrV = weightOrVolume.setScale(0, RoundingMode.HALF_UP).intValue();
ScoreRuleOrderVExtraVO.OrderVRule lastRule = orderVRules.get(orderVRules.size() - 1);
if (wOrV >= lastRule.getHigh()) {
return lastRule.getScore();
return lastRule.getScore() * wOrV;
}
for (ScoreRuleOrderVExtraVO.OrderVRule rule : orderVRules) {
if (rule.getLow() <= wOrV && wOrV < rule.getHigh()) {
return rule.getScore();
return rule.getScore() * wOrV;
}
}
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