SelectEntityDao extends BaseDao { public int deleteByProjectId(Long projectId) throws SQLException { String sql = "DELETE FROM task_sql WHERE project_id=?"; return this.updataBysql(sql, Parameter.integerOf(StringUtils.EMPTY, projectId)); }  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 deleteByProjectId() throws Exception { int count = selectEntityDao.deleteByProjectId(999L); System.out.println("deleteByProjectId :-------> " + count); Assert.assertTrue(count > 0); }