ProjectDbsetRelationDao extends BaseDao { public int[] insertRelationList(List<ProjectDbsetRelation> projectDbsetRelations) throws SQLException { if (CollectionUtils.isEmpty(projectDbsetRelations)) { return new int[0]; } return this.getDasClient().batchInsert(projectDbsetRelations); }  Long insertProjectDbsetRelation(ProjectDbsetRelation projectDbsetRelation); int[] insertRelationList(List<ProjectDbsetRelation> projectDbsetRelations); int updateProjectDbsetRelation(ProjectDbsetRelation projectDbsetRelation); int deleteProjectDbsetRelation(ProjectDbsetRelation projectDbsetRelation); int deleteByProjectAndDbSetIdS(Long projectId, Set<Long> dbsetIds); int deleteByProjectId(Long projectId); ProjectDbsetRelation getProjectDbsetRelationById(Long id); List<ProjectDbsetRelation> getAllProjectDbsetRelation(Long projectId); Long getCountByRelation(Long dbsetId, Long projectId);  }
@Test public void insertRelationList() throws Exception { List<ProjectDbsetRelation> list = new ArrayList<>(); for (long i = 1; i < 4; i++) { ProjectDbsetRelation projectDbsetRelation = ProjectDbsetRelation.builder().dbsetId(i + 1L).projectId(i).updateUserNo("007").build(); list.add(projectDbsetRelation); } int[] ids = projectDbsetRelationDao.insertRelationList(list); System.out.println("insertProjectDbsetRelation :-------> " + ids); Assert.assertTrue(ids.length > 0); }