list集合怎么放到pageData中

提问 5 1683
版本:renren-security 开发环境:
list集合怎么放到pageData中 public Result selectAll(@PathVariable("id") Long eid) { //当前登录用户的ID Long loginUserID = getUserId(); //当前登录用户的部门ID Long loginUserDeptID = sysUserService.get(loginUserID).getDeptId(); List<BfStatisticsEntity> bfStatisticsEntities = bfStatisticsService.finAllstatistics(eid); System.err.println(bfStatisticsEntities.toString()); List b = new ArrayList(); for (BfStatisticsEntity allstatistic : bfStatisticsEntities) { if (allstatistic.getBid() == loginUserDeptID) { b.add(allstatistic); } else if (loginUserDeptID == null) { b.add(allstatistic); } } return new Result().ok(b); }
回帖