mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update 小程序站点列表中枪口状态使用数据库中的值
This commit is contained in:
@@ -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 | 故障原因 |
|
||||
|
||||
|
||||
|
||||
| 字段名 | 类型 | 是否必传 | 备注 |
|
||||
| ------ | ---- | -------- | ------------------------------------------------- |
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user