UserProjectDao extends BaseDao { public List<UserProject> getUsersByProjectId(Long projectId) throws SQLException { String sql = "SELECT id, project_id, user_id FROM user_project WHERE project_id = ?"; return this.queryBySql(sql, UserProject.class, Parameter.integerOf(StringUtils.EMPTY, projectId)); }  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 getUsersByProjectId() throws Exception { List<UserProject> lsit = userProjectDao.getUsersByProjectId(1L); System.out.println("getUsersByProjectId :-------> " + lsit); Assert.assertTrue(lsit.size() > 0); }