|
@ -138,7 +138,7 @@ public class PointsModifyConsumer implements RocketMQListener<MessageExt> { |
|
|
Integer total = pointsLogsService.getPointsSumByBehaviorCodeAndUserId(pointsLogsFormDTO); |
|
|
Integer total = pointsLogsService.getPointsSumByBehaviorCodeAndUserId(pointsLogsFormDTO); |
|
|
//判断总分是否超过上限
|
|
|
//判断总分是否超过上限
|
|
|
if (total != null) { |
|
|
if (total != null) { |
|
|
if (Math.abs(total+ pointsRuleResultDTO.getPoints()) >= Math.abs(pointsRuleResultDTO.getUpperLimitVal())) { |
|
|
if (Math.abs(total+ pointsRuleResultDTO.getPoints()) > Math.abs(pointsRuleResultDTO.getUpperLimitVal())) { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|