From 00414e2bec5817e2782b7339100ddfe48e4f1d49 Mon Sep 17 00:00:00 2001 From: "autumn.g@foxmail.com" Date: Wed, 13 Sep 2023 14:09:12 +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 --- .../jsowell/pile/service/impl/PileBasicInfoServiceImpl.java | 6 +++++- .../pile/service/impl/PileConnectorInfoServiceImpl.java | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileBasicInfoServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileBasicInfoServiceImpl.java index 9695abc77..cd7d67006 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileBasicInfoServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileBasicInfoServiceImpl.java @@ -43,7 +43,6 @@ import java.math.RoundingMode; import java.util.*; import java.util.concurrent.TimeUnit; import java.util.stream.Collectors; -import java.util.stream.Stream; /** * 设备管理Service业务层处理 @@ -358,6 +357,11 @@ public class PileBasicInfoServiceImpl implements IPileBasicInfoService { return pileInfoVO; } + /** + * 根据桩编号查询桩信息 + * @param pileSn + * @return + */ @Override public PileInfoVO selectPileInfoBySn(String pileSn) { PileBasicInfo basicInfo = selectPileBasicInfoBySN(pileSn); 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 ccea571d5..c08899757 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 @@ -118,7 +118,7 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService { result = selectPileConnectorInfoList(pileConnectorInfo); if (CollectionUtils.isNotEmpty(result)) { // 查询数据库不为空,存redis 2分钟 - redisCache.setCacheObject(redisKey, result, 15, TimeUnit.HOURS); + redisCache.setCacheObject(redisKey, result, 5, TimeUnit.MINUTES); } } return result;