From 5aa2fcc7132f632483eee7db69e164dbb2c37f0d Mon Sep 17 00:00:00 2001 From: "autumn.g@foxmail.com" Date: Thu, 7 Mar 2024 14:53:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BC=93=E5=AD=98=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/jsowell/api/uniapp/PileController.java | 2 +- .../jsowell/pile/service/impl/PileConnectorInfoServiceImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jsowell-admin/src/main/java/com/jsowell/api/uniapp/PileController.java b/jsowell-admin/src/main/java/com/jsowell/api/uniapp/PileController.java index eadfbc560..82c93ee3e 100644 --- a/jsowell-admin/src/main/java/com/jsowell/api/uniapp/PileController.java +++ b/jsowell-admin/src/main/java/com/jsowell/api/uniapp/PileController.java @@ -54,7 +54,7 @@ public class PileController extends BaseController { @PostMapping("/queryStationInfos") public RestApiResponse queryStationInfos(HttpServletRequest request, @RequestBody QueryStationDTO queryStationDTO) { logger.info("查询充电站信息列表 param:{}", JSONObject.toJSONString(queryStationDTO)); - RestApiResponse response = null; + RestApiResponse response; try { // 获取appid(第三方平台用) String appId = request.getHeader("appId"); diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileConnectorInfoServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileConnectorInfoServiceImpl.java index 79cb52bec..43abcd19f 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileConnectorInfoServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileConnectorInfoServiceImpl.java @@ -418,7 +418,7 @@ public class PileConnectorInfoServiceImpl implements PileConnectorInfoService { if (CollectionUtils.isNotEmpty(list)) { redisCache.deleteObject(redisKey); redisCache.setCacheList(redisKey, list); - redisCache.expire(redisKey, CacheConstants.cache_expire_time_1d); + redisCache.expire(redisKey, CacheConstants.cache_expire_time_1h); } } return list;