From 32b1505ba4f91e4840f8d0808f7bdf0747c3229b Mon Sep 17 00:00:00 2001 From: Lemon Date: Wed, 7 Jan 2026 13:53:33 +0800 Subject: [PATCH] =?UTF-8?q?update=20=20=E8=BF=90=E8=90=A5=E7=AB=AF?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E6=9F=A5=E8=AF=A2=E5=90=84=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=9E=AA=E5=8F=A3=E6=95=B0=E9=87=8F=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/PileConnectorInfoServiceImpl.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 529458f5b..17dbffd14 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 @@ -1122,6 +1122,7 @@ public class PileConnectorInfoServiceImpl implements PileConnectorInfoService { int freeNum = 0; int occupiedNum = 0; int chargingNum = 0; + int hangingNum = 0; int faultNum = 0; for (ConnectorInfoVO connectorInfoVO : connectorInfoVOS) { @@ -1135,6 +1136,10 @@ public class PileConnectorInfoServiceImpl implements PileConnectorInfoService { // 空闲 freeNum += 1; } + if (StringUtils.equals(status, PileConnectorDataBaseStatusEnum.OCCUPIED_RESERVED_LOCK.getValue())) { + // 预约锁定(挂起) + hangingNum += 1; + } if (StringUtils.equals(status, PileConnectorDataBaseStatusEnum.OCCUPIED_NOT_CHARGED.getValue())) { // 占用未充电 occupiedNum += 1; @@ -1148,8 +1153,13 @@ public class PileConnectorInfoServiceImpl implements PileConnectorInfoService { faultNum += 1; } } + // 全部数量 + int totalNum = offlineNum + freeNum + occupiedNum + chargingNum + faultNum + hangingNum; + + map.put("totalNum", totalNum); map.put("offlineNum", offlineNum); map.put("freeNum", freeNum); + map.put("hangingNum", hangingNum); map.put("occupiedNum", occupiedNum); map.put("chargingNum", chargingNum); map.put("faultNum", faultNum);