SelectEntityDao extends BaseDao { public int updateTask(TaskSql task) throws SQLException { if (null == task || task.getId() == null) { return 0; } return this.getDasClient().update(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 updateTask() throws Exception { task.setId(26L); task.setClass_name("SelectTab"); int count = selectEntityDao.updateTask(task); System.out.println("updateTask :-------> " + count); Assert.assertTrue(count > 0); }