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;