TableEntityDao extends BaseDao { public int[] insertTaskTablelist(List<TaskTable> list) throws SQLException { if (CollectionUtils.isEmpty(list)) { return new int[0]; } return this.getDasClient().batchInsert(list); }  Long insertTask(TaskTable task); int[] insertTaskTablelist(List<TaskTable> list); int updateTask(TaskTable taskTable); int deleteTask(TaskTable taskTable); int deleteByProjectId(int id); TaskTable getTasksByTaskId(Long id); List<TaskTable> getTaskTableByCustomTableNames(Long project_id, List<String> names); List<TaskTable> getTaskTablesByTableNames(Long project_id, List<String> names); List<TaskTableView> getTasksByProjectId(Long projectId); Long getTableEntityTotalCount(Paging<TaskTable> paging); List<TaskTableView> findTableEntityPageList(Paging<TaskTable> paging); List<TaskTableView> findTableEntitysByDbId(Long paging);  }
@Test public void insertTaskTablelist() throws Exception { List<TaskTable> list = new ArrayList<>(); for (int i = 1; i < 3; i++) { list.add(TaskTable.builder().table_names("tableNames").custom_table_name("SelectEntityDaoTest").project_id(999L + i).view_names("SelectEntityDaoTest").comment("project comment").approveMsg("ass").dbset_id(111L).update_user_no("007").build()); } int[] ins = tableEntityDao.insertTaskTablelist(list); System.out.println("insertTaskTablelist :-------> " + ins); Assert.assertTrue(ins.length > 0); }