diff --git a/mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/controller/app/MemberController.java b/mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/controller/app/MemberController.java index 5384cf99b..466673376 100644 --- a/mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/controller/app/MemberController.java +++ b/mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/controller/app/MemberController.java @@ -59,10 +59,10 @@ public class MemberController { @ApiOperation(value = "扣减会员余额") @PutMapping("/current/balances/_deduct") public Result deductBalance(@RequestParam Long balances) { - Long userId = MemberUtils.getMemberId(); + Long memberId = MemberUtils.getMemberId(); boolean result = memberService.update(new LambdaUpdateWrapper() .setSql("balance = balance - " + balances) - .eq(UmsMember::getId, userId) + .eq(UmsMember::getId, memberId) ); return Result.judge(result); }