From 4041ce666b577135e88dd0b5c6a5995fcb724302 Mon Sep 17 00:00:00 2001 From: 13233904609 <13233904609@163.cm> Date: Sat, 13 Jul 2024 13:19:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E5=B8=AE=E6=89=B6=E5=91=98?= =?UTF-8?q?=EF=BC=8C=E5=B8=AE=E6=89=B6=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../member/service/user/MemberUserService.java | 2 +- .../service/user/MemberUserServiceImpl.java | 18 ++---------------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/ruoyi-vue-pro-master/yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/service/user/MemberUserService.java b/ruoyi-vue-pro-master/yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/service/user/MemberUserService.java index 1cae4b8..23aeaf8 100644 --- a/ruoyi-vue-pro-master/yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/service/user/MemberUserService.java +++ b/ruoyi-vue-pro-master/yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/service/user/MemberUserService.java @@ -199,6 +199,6 @@ public interface MemberUserService { * @param userId 用户编号 * @return 更新结果 */ - boolean updateUserUpgradesLevel(Long userId); + void updateUserUpgradesLevel(Long userId); } diff --git a/ruoyi-vue-pro-master/yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/service/user/MemberUserServiceImpl.java b/ruoyi-vue-pro-master/yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/service/user/MemberUserServiceImpl.java index 4d41544..189cd8e 100644 --- a/ruoyi-vue-pro-master/yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/service/user/MemberUserServiceImpl.java +++ b/ruoyi-vue-pro-master/yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/service/user/MemberUserServiceImpl.java @@ -352,25 +352,11 @@ public class MemberUserServiceImpl implements MemberUserService { return false; } @Override - public boolean updateUserUpgradesLevel(Long userId) { - //查询帮扶人等级id - List levelList = memberLevelMapper.selectList(new LambdaQueryWrapperX() - .eq(MemberLevelDO::getStatus, 0) - .eq(MemberLevelDO::getDeleted, 0) - .orderByAsc(MemberLevelDO::getLevel)); - //循环处理帮扶人等级 - for (MemberLevelDO vo:levelList) { - - } - //先会员本身升级为帮扶员 - int i = memberUserMapper.updateById(new MemberUserDO() - .setId(userId) - .setLevelId(levelList.get(0).getId()) - ); + public void updateUserUpgradesLevel(Long userId) { + recursionMemberLevel(userId); // if(i>0){ // return true; // } - return false; } private void recursionMemberLevel(Long userId){