Commit 52e5004e authored by Smile's avatar Smile Committed by wux

会员等级自动赋值,为0时出错

parent d90afc74
...@@ -107,7 +107,7 @@ public class userLevelDetailsTask implements JobHandler { ...@@ -107,7 +107,7 @@ public class userLevelDetailsTask implements JobHandler {
reduceScore+=scoreLog.getScoreCount(); reduceScore+=scoreLog.getScoreCount();
} }
} }
if (addScore>reduceScore){ if (addScore>=reduceScore){
int score = addScore - reduceScore; int score = addScore - reduceScore;
log.info("符合规则积分数量: {}", score); log.info("符合规则积分数量: {}", score);
if (score>=userLevelConfigDO.getLowerCount()){ if (score>=userLevelConfigDO.getLowerCount()){
......
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