|
|
@ -956,6 +956,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
|
//规则操作类型(0-减积分,1-加积分)
|
|
|
|
if (PointsOperationEnum.OPERATION_TYPE_ADD.getOperationType().equals(formDTO.getOperationType())) { |
|
|
|
userEntity.setPoints(userEntity.getPoints() + formDTO.getPoints()); |
|
|
|
userEntity.setPointsTotle(userEntity.getPointsTotle() + formDTO.getPoints()); |
|
|
|
} else if (PointsOperationEnum.OPERATION_TYPE_SUBSTRACT.getOperationType().equals(formDTO.getOperationType())) { |
|
|
|
userEntity.setPoints(userEntity.getPoints() - formDTO.getPoints()); |
|
|
|
} |
|
|
|