SelectEntityDao extends BaseDao { public TaskSql getTasksByTaskId(Long id) throws SQLException { TaskSql task = new TaskSql(); task.setId(id); return this.getDasClient().queryByPk(task); }  Long insertTask(TaskSql task); int updateTask(TaskSql task); int deleteTask(TaskSql task); int deleteByProjectId(Long projectId); TaskSql getTasksByTaskId(Long id); Long getSelectEntityTotalCount(Paging<TaskSql> paging); List<TaskSqlView> findSelectEntityPageList(Paging<TaskSql> paging);  }
@Test public void getTasksByTaskId() throws Exception { TaskSql taskSql = selectEntityDao.getTasksByTaskId(24L); System.out.println("getTasksByTaskId :-------> " + taskSql); Assert.assertTrue(taskSql != null); }