TableEntityDao extends BaseDao { public int updateTask(TaskTable taskTable) throws SQLException { if (null == taskTable || taskTable.getId() == null) { return 0; } return this.getDasClient().update(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 updateTask() throws Exception { taskTable.setId(1004L); taskTable.setComment("aaaaaa"); int count = tableEntityDao.updateTask(taskTable); System.out.println("updateTask :-------> " + count); Assert.assertTrue(count > 0); }