@Override public List<Integer> getAssemblyUserIdsByRoleList( List<Integer> assemblyIds, List<RoleEnum> roleList) { List<String> roleNameList = new ArrayList<>(); for (RoleEnum roleEnum : roleList) { roleNameList.add(roleEnum.getRoleName()); } return assemblyUserCfgDOMapper.selectAssemblyUserIdsByRoleList(assemblyIds, roleNameList); }
@Override public boolean ifUserBelongsToAssembly(int userId, RoleEnum roleEnum, int assemblyId) { int count = assemblyUserCfgDOMapper.countUserInAssembly(assemblyId, userId, roleEnum.getRoleName()); return count > 0 ? true : false; }