From 7e1bd61390428df5a4552a64c8d930ba6e178d73 Mon Sep 17 00:00:00 2001 From: Lemon Date: Mon, 28 Oct 2024 10:19:25 +0800 Subject: [PATCH] =?UTF-8?q?update=20=20=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E7=AB=99=E7=82=B9=E5=88=97=E8=A1=A8=E4=B8=AD=E6=9E=AA=E5=8F=A3?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E4=BD=BF=E7=94=A8=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/运营小程序接口文档.md | 26 ++++++++++++++++--- .../impl/PileConnectorInfoServiceImpl.java | 6 ++--- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/doc/运营小程序接口文档.md b/doc/运营小程序接口文档.md index 3729c20d1..7793675de 100644 --- a/doc/运营小程序接口文档.md +++ b/doc/运营小程序接口文档.md @@ -257,17 +257,35 @@ # 充电枪情况 -请求地址: +请求地址:http://localhost:8080/business/pile/connector/getBusinessPileConnectorDetail/{pileConnectorCode} -请求方式: +请求方式:GET -入参 +### 入参 | 字段名 | 类型 | 是否必传 | 备注 | | ----------------- | ------ | -------- | -------- | | pileConnectorCode | String | Y | 枪口编码 | -反参 +### 反参 + +| 字段名 | 类型 | 是否必传 | 备注 | +| ----------------------- | ----------------------- | -------- | ---- | +| BusinessConnectorInfoVO | BusinessConnectorInfoVO | Y | | + +### BusinessConnectorInfoVO + +| 字段名 | 类型 | 是否必传 | 备注 | +| ----------------- | ------ | -------- | --------------- | +| pileConnectorCode | String | Y | 枪口编号 | +| status | String | Y | 状态 | +| startSoc | String | N | 起始soc | +| endSoc | String | N | 终止(当前)soc | +| chargeDegree | String | N | 充电度数 | +| timeRemaining | String | N | 剩余时长 | +| faultReason | String | N | 故障原因 | + + | 字段名 | 类型 | 是否必传 | 备注 | | ------ | ---- | -------- | ------------------------------------------------- | 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 52d5eda9f..c8d6d5731 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 @@ -746,9 +746,9 @@ public class PileConnectorInfoServiceImpl implements PileConnectorInfoService { for (ConnectorInfoVO connectorVO : connectorList) { String redisKey = CacheConstants.PILE_CONNECTOR_STATUS_KEY + connectorVO.getPileConnectorCode(); String status = redisCache.getCacheObject(redisKey); - if (StringUtils.isBlank(status)) { - status = connectorVO.getConnectorStatus(); - } + // if (StringUtils.isBlank(status)) { + // } + status = connectorVO.getConnectorStatus(); if (StringUtils.equals(connectorVO.getChargingType(), Constants.ONE)) { // 快充 fastTotal += 1;