|
@@ -135,7 +135,7 @@ public class JyPlatformServiceImpl extends ServiceImpl<IJyPlatformMapper, JyPlat
|
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
}
|
|
|
//update userRole
|
|
|
- JyUser jyUser = jyUserService.getById(param.getJyUserId());
|
|
|
+ JyUser jyUser = jyUserService.getByIdCard(jyPlatform.getIdCard());
|
|
|
if(jyUser != null){
|
|
|
sysUserService.updateRoleId(jyUser.getSysUserId(),48L);
|
|
|
}
|
|
@@ -161,9 +161,8 @@ public class JyPlatformServiceImpl extends ServiceImpl<IJyPlatformMapper, JyPlat
|
|
|
if(jyPlatform == null){
|
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
}
|
|
|
-
|
|
|
+ JyUser jyUser = jyUserService.getByIdCard(jyPlatform.getIdCard());
|
|
|
//update userRole
|
|
|
- JyUser jyUser = jyUserService.getById(param.getJyUserId());
|
|
|
if(jyUser != null){
|
|
|
sysUserService.updateRoleId(jyUser.getSysUserId(),47L);
|
|
|
}
|
|
@@ -184,5 +183,10 @@ public class JyPlatformServiceImpl extends ServiceImpl<IJyPlatformMapper, JyPlat
|
|
|
return list.stream().map(JyPlatform::getIdCard).collect(Collectors.toList());
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ @Override
|
|
|
+ public List<JyPlatform> getNotBanList() {
|
|
|
+ LambdaQueryWrapper<JyPlatform> wrapper = new LambdaQueryWrapper<>();
|
|
|
+ wrapper.eq(JyPlatform::getStatus,0);
|
|
|
+ return this.list(wrapper);
|
|
|
+ }
|
|
|
}
|