|
@@ -60,6 +60,11 @@ public class JyUserPlatformServiceImpl extends ServiceImpl<IJyUserPlatformMapper
|
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
}
|
|
|
param.setPlatformId(loginPlatformId);
|
|
|
+ JyUser jyUser = jyUserService.getById(param.getId());
|
|
|
+ SysUser byId = sysUserService.getById(jyUser.getSysUserId());
|
|
|
+ if(byId.getRoleId() != 47L ){
|
|
|
+ throw new BusinessException(ResultCode.PLATFORM_USER_ADDERROR);
|
|
|
+ }
|
|
|
this.bindPlatform(param.getId(),loginPlatformId);
|
|
|
}
|
|
|
|
|
@@ -68,6 +73,11 @@ public class JyUserPlatformServiceImpl extends ServiceImpl<IJyUserPlatformMapper
|
|
|
if(param.getId() == null || param.getPlatformId() == null){
|
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
}
|
|
|
+ JyUser jyUser = jyUserService.getById(param.getId());
|
|
|
+ SysUser byId = sysUserService.getById(jyUser.getSysUserId());
|
|
|
+ if(byId.getRoleId() != 47L ){
|
|
|
+ throw new BusinessException(ResultCode.PLATFORM_USER_ADDERROR);
|
|
|
+ }
|
|
|
this.bindPlatform(param.getId(),param.getPlatformId());
|
|
|
|
|
|
}
|