From 5416c6ab09efbd9fc0b0c2846b05e580f7869d48 Mon Sep 17 00:00:00 2001 From: KKSU <15274802129@163.com> Date: Mon, 26 Feb 2024 10:26:27 +0800 Subject: [PATCH] 抽奖 --- src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallMemberServiceImpl.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallMemberServiceImpl.java b/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallMemberServiceImpl.java index 0d76c45..b2232bb 100644 --- a/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallMemberServiceImpl.java +++ b/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallMemberServiceImpl.java @@ -283,7 +283,7 @@ }else if(ObjectUtil.isNotEmpty(mallAgentRecordDisagree)){ mallMemberVo.setIsAgent(3); } - log.info(mallMemberVo.getName()+"---"+mallMemberVo.getAgentLevel()); +// log.info(mallMemberVo.getName()+"---"+mallMemberVo.getAgentLevel()); return new FebsResponse().success().data(mallMemberVo); } @@ -800,9 +800,9 @@ @Override public void updateMemberAgent(Long memberId,String levelCode) { mallAgentRecordMapper.updateStateByMemberId(memberId); - + MallAgentRecord mallAgentRecord = mallAgentRecordMapper.selectById(memberId); //更新用户表中的LEVEL - MallMember mallMember = this.baseMapper.selectById(memberId); + MallMember mallMember = this.baseMapper.selectById(mallAgentRecord.getMemberId()); mallMember.setLevel(levelCode); this.baseMapper.updateById(mallMember); } -- Gitblit v1.9.1