瀏覽代碼

判断用户是否存在管理员优化

Bob 2 年之前
父節點
當前提交
c485c46994

+ 1 - 1
pdf-tech-core/src/main/java/cn/kdan/pdf/tech/core/service/impl/VppRTeamMemberRoleServiceImpl.java

@@ -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);
             }