TableEntityDao extends BaseDao { public Long insertTask(TaskTable task) throws SQLException { if (null == task) { return 0L; } this.getDasClient().insert(task, Hints.hints().setIdBack()); return task.getId(); }  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 insertTask() throws Exception { Long id = tableEntityDao.insertTask(taskTable); System.out.println("insertTask :-------> " + id); Assert.assertTrue(id > 0); }