ProjectDbsetRelationDao extends BaseDao { public int deleteByProjectId(Long projectId) throws SQLException { String sql = "DELETE FROM project_dbset_relation WHERE project_id = " + projectId; return this.updataBysql(sql); }  Long insertProjectDbsetRelation(ProjectDbsetRelation projectDbsetRelation); int[] insertRelationList(List<ProjectDbsetRelation> projectDbsetRelations); int updateProjectDbsetRelation(ProjectDbsetRelation projectDbsetRelation); int deleteProjectDbsetRelation(ProjectDbsetRelation projectDbsetRelation); int deleteByProjectAndDbSetIdS(Long projectId, Set<Long> dbsetIds); int deleteByProjectId(Long projectId); ProjectDbsetRelation getProjectDbsetRelationById(Long id); List<ProjectDbsetRelation> getAllProjectDbsetRelation(Long projectId); Long getCountByRelation(Long dbsetId, Long projectId);  }
@Test public void deleteByProjectId() throws Exception { int count = projectDbsetRelationDao.deleteByProjectId(999L); System.out.println("deleteByProjectId :-------> " + count); Assert.assertTrue(count > 0); }