list集合怎么放到pageData中

提问 未结 5 405
它們和小鳥一様
悬赏:20积分
版本: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); }
回帖