|
@@ -132,7 +132,7 @@ public class VppRTeamMemberRoleServiceImpl implements VppRTeamMemberRoleService
|
|
|
// 查询是否为本团队管理员
|
|
|
VppRTeamMemberRoleExample example1 = new VppRTeamMemberRoleExample();
|
|
|
example1.createCriteria().andMemberIdEqualTo(byAccount.getId()).andTeamIdEqualTo(dto.getTeamId()).andRoleIdLike("2");
|
|
|
- List<VppRTeamMemberRole> vppRTeamMemberRoles1 = vppRTeamMemberRoleMapper.selectByExample(example);
|
|
|
+ List<VppRTeamMemberRole> vppRTeamMemberRoles1 = vppRTeamMemberRoleMapper.selectByExample(example1);
|
|
|
if (!CollectionUtils.isEmpty(vppRTeamMemberRoles1)) {
|
|
|
throw new BackendRuntimeException(VppMemberConstant.MEMBEU_HAS_ADMIN);
|
|
|
}
|