@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);
 }
 private void loadAssemblyUsers(AssemblyVO vo) {
   String developers = "", testers = "";
   int assemblyId = vo.getAssemblyId();
   List<AssemblyUserCfgDO> users =
       assemblyUserCfgDOMapper.selectAssemblyUsersByAssemblyId(assemblyId);
   for (AssemblyUserCfgDO user : users) {
     switch (RoleEnum.valueOf(user.getRoleName())) {
       case DEV:
         developers += user.getRealName() + " ";
         break;
       case TEST:
         testers += user.getRealName() + " ";
         break;
       default:
         break;
     }
   }
   vo.setDevelopers(developers);
   vo.setTesters(testers);
 }
 @Override
 public boolean ifUserBelongsToAssembly(int userId, RoleEnum roleEnum, int assemblyId) {
   int count =
       assemblyUserCfgDOMapper.countUserInAssembly(assemblyId, userId, roleEnum.getRoleName());
   return count > 0 ? true : false;
 }