mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2025-01-03 17:42:20 +08:00
refactor(MemberController.java): 会员ID命名修改
This commit is contained in:
parent
f8aa83539e
commit
c290c13a8a
@ -59,10 +59,10 @@ public class MemberController {
|
||||
@ApiOperation(value = "扣减会员余额")
|
||||
@PutMapping("/current/balances/_deduct")
|
||||
public <T> Result<T> deductBalance(@RequestParam Long balances) {
|
||||
Long userId = MemberUtils.getMemberId();
|
||||
Long memberId = MemberUtils.getMemberId();
|
||||
boolean result = memberService.update(new LambdaUpdateWrapper<UmsMember>()
|
||||
.setSql("balance = balance - " + balances)
|
||||
.eq(UmsMember::getId, userId)
|
||||
.eq(UmsMember::getId, memberId)
|
||||
);
|
||||
return Result.judge(result);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user