TableEntityDao extends BaseDao { public TaskTable getTasksByTaskId(Long id) throws SQLException { TaskTable taskTable = new TaskTable(); taskTable.setId(id); return this.getDasClient().queryByPk(taskTable); }  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 getTasksByTaskId() throws Exception { TaskTable taskTable = tableEntityDao.getTasksByTaskId(1001L); System.out.println("getTasksByTaskId :-------> " + taskTable); Assert.assertTrue(taskTable != null); }