TableEntityDao extends BaseDao { public int deleteByProjectId(int id) throws SQLException { return this.updataBysql("DELETE FROM task_table WHERE project_id=?", Parameter.integerOf(StringUtils.EMPTY, id)); }  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 deleteByProjectId() throws Exception { int count = tableEntityDao.deleteByProjectId(999); System.out.println("deleteByProjectId :-------> " + count); Assert.assertTrue(count > 0); }