| | |
| | | }; |
| | | List<EnterPark> all = enterParkService.findAll(specification2); |
| | | for(EnterPark enterPark:all){ |
| | | Park park = (Park) parkService.findById(enterPark.getId()); |
| | | Park park = (Park) parkService.findById(enterPark.getParkId()); |
| | | enterPark.setParkName(park.getName()); |
| | | } |
| | | return success("",all); |
| | |
| | | } |
| | | }; |
| | | Page<EnterPark> all = enterParkService.findPage(pageable,specification2); |
| | | for (EnterPark enterPark : all.getContent()) { |
| | | Park byId = (Park)parkService.findById(enterPark.getParkId()); |
| | | if(byId != null){ |
| | | enterPark.setParkName(byId.getName()); |
| | | } |
| | | } |
| | | return success("",all); |
| | | } |
| | | } |