UserProjectDao extends BaseDao { public int deleteUserProjectByProjectId(Long project_id) throws SQLException { String sql = "DELETE FROM user_project WHERE project_id = ?"; return this.updataBysql(sql, Parameter.integerOf(StringUtils.EMPTY, project_id)); }  Long insertUserProject(UserProject userProject); int[] insertUserProjectList(List<UserProject> userProjects); int updateUserProject(UserProject userProject); int deleteUserProjectByProjectId(Long project_id); int deleteByProjectAndUserIdS(Long projectId, Set<Long> userIds); List<UserProject> getUsersByProjectId(Long projectId); UserProject getMinUserProjectByProjectId(Long project_id);  }
@Test public void deleteUserProjectByProjectId() throws Exception { int count = userProjectDao.deleteUserProjectByProjectId(1L); System.out.println("updateUserProject :-------> " + count); Assert.assertTrue(count > 0); }