|
|
|
@ -352,25 +352,11 @@ public class MemberUserServiceImpl implements MemberUserService {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public boolean updateUserUpgradesLevel(Long userId) {
|
|
|
|
|
//查询帮扶人等级id
|
|
|
|
|
List<MemberLevelDO> levelList = memberLevelMapper.selectList(new LambdaQueryWrapperX<MemberLevelDO>()
|
|
|
|
|
.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){
|
|
|
|
|