src/main/java/com/boying/controller/ParkController.java
@@ -39,7 +39,12 @@ List<Park> records = page1.getRecords(); for (Park record : records) { String num = redisTemplate.opsForValue().get("car_park_" + record.getId()); if(num != null){ record.setCarNum(Integer.parseInt(num)); }else { record.setCarNum(0); } } page1.setRecords(records); return R.ok(page1);