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:
@@ -1122,6 +1122,7 @@ public class PileConnectorInfoServiceImpl implements PileConnectorInfoService {
|
|||||||
int freeNum = 0;
|
int freeNum = 0;
|
||||||
int occupiedNum = 0;
|
int occupiedNum = 0;
|
||||||
int chargingNum = 0;
|
int chargingNum = 0;
|
||||||
|
int hangingNum = 0;
|
||||||
int faultNum = 0;
|
int faultNum = 0;
|
||||||
|
|
||||||
for (ConnectorInfoVO connectorInfoVO : connectorInfoVOS) {
|
for (ConnectorInfoVO connectorInfoVO : connectorInfoVOS) {
|
||||||
@@ -1135,6 +1136,10 @@ public class PileConnectorInfoServiceImpl implements PileConnectorInfoService {
|
|||||||
// 空闲
|
// 空闲
|
||||||
freeNum += 1;
|
freeNum += 1;
|
||||||
}
|
}
|
||||||
|
if (StringUtils.equals(status, PileConnectorDataBaseStatusEnum.OCCUPIED_RESERVED_LOCK.getValue())) {
|
||||||
|
// 预约锁定(挂起)
|
||||||
|
hangingNum += 1;
|
||||||
|
}
|
||||||
if (StringUtils.equals(status, PileConnectorDataBaseStatusEnum.OCCUPIED_NOT_CHARGED.getValue())) {
|
if (StringUtils.equals(status, PileConnectorDataBaseStatusEnum.OCCUPIED_NOT_CHARGED.getValue())) {
|
||||||
// 占用未充电
|
// 占用未充电
|
||||||
occupiedNum += 1;
|
occupiedNum += 1;
|
||||||
@@ -1148,8 +1153,13 @@ public class PileConnectorInfoServiceImpl implements PileConnectorInfoService {
|
|||||||
faultNum += 1;
|
faultNum += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 全部数量
|
||||||
|
int totalNum = offlineNum + freeNum + occupiedNum + chargingNum + faultNum + hangingNum;
|
||||||
|
|
||||||
|
map.put("totalNum", totalNum);
|
||||||
map.put("offlineNum", offlineNum);
|
map.put("offlineNum", offlineNum);
|
||||||
map.put("freeNum", freeNum);
|
map.put("freeNum", freeNum);
|
||||||
|
map.put("hangingNum", hangingNum);
|
||||||
map.put("occupiedNum", occupiedNum);
|
map.put("occupiedNum", occupiedNum);
|
||||||
map.put("chargingNum", chargingNum);
|
map.put("chargingNum", chargingNum);
|
||||||
map.put("faultNum", faultNum);
|
map.put("faultNum", faultNum);
|
||||||
|
|||||||
Reference in New Issue
Block a user