kongdeqiang
2024-03-25 d6aa1029a1c538cd2227f0026ad5adbaa1739726
src/main/java/com/boying/controller/phone/YCPayController.java
@@ -59,7 +59,7 @@
    private final EnterParkService enterParkService;
    private final WXService wxService;
    private final OutParkLogService outParkLogService;
    private  StringRedisTemplate redisTemplate;
    private  final StringRedisTemplate redisTemplate;
    /**
@@ -682,8 +682,8 @@
                outPark.setStatus(1);
                outParkService.saveOrUpdate(outPark);
                //缓存在redis里
//                String jsonValue = JSON.toJSONString(outPark);
//                redisTemplate.opsForValue().set("outPark-"+outPark.getBarrierId(), jsonValue);
                String jsonValue = JSON.toJSONString(outPark);
                redisTemplate.opsForValue().set("outPark-"+outPark.getBarrierId(), jsonValue);
            }
        }
    }