kongdeqiang
2024-03-24 50751d18aebbd596615c626a3e47c8aba47bc76a
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);
            }
        }
    }