kongdeqiang
2022-09-26 18087f533cd48ddb9f972c0848ffe920ec58ee8e
src/main/java/com/boying/controller/phone/NoticeController.java
@@ -64,7 +64,7 @@
        };
        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);
@@ -88,6 +88,12 @@
            }
        };
        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);
    }
}