|
@@ -105,8 +105,8 @@ public class VipServiceImpl implements VipService {
|
|
|
if (authVip.getBeginTime().compareTo(beginTime) >= 0) {
|
|
|
// 删除原有角色关联
|
|
|
systemMapper.deleteUserRoleRelation(authUserId);
|
|
|
- // 续费重新分配角色
|
|
|
- sysUserService.saveRoleRelation(authUserId, "1,2");
|
|
|
+ // 会员过期重新分配角色
|
|
|
+ sysUserService.saveRoleRelation(authUserId, "1");
|
|
|
}
|
|
|
} else {
|
|
|
// 新增会员信息
|
|
@@ -114,7 +114,7 @@ public class VipServiceImpl implements VipService {
|
|
|
// 删除原有角色关联
|
|
|
systemMapper.deleteUserRoleRelation(authUserId);
|
|
|
// 分配角色
|
|
|
- sysUserService.saveRoleRelation(authUserId, "1,2");
|
|
|
+ sysUserService.saveRoleRelation(authUserId, "1");
|
|
|
}
|
|
|
}
|
|
|
if (null != vipHistory.getId() && vipHistory.getId() > 0) {
|
|
@@ -334,7 +334,7 @@ public class VipServiceImpl implements VipService {
|
|
|
// 删除原有角色关联
|
|
|
systemMapper.deleteUserRoleRelation(authUserId);
|
|
|
// 保存用户角色关系
|
|
|
- sysUserService.saveRoleRelation(authUserId, roleIds + ",1,2");
|
|
|
+ sysUserService.saveRoleRelation(authUserId, roleIds + ",1");
|
|
|
return ResponseJson.success();
|
|
|
}
|
|
|
}
|