update 小程序站点列表中枪口状态使用数据库中的值

This commit is contained in:
Lemon
2024-10-28 10:19:25 +08:00
parent 7130b036d1
commit 7e1bd61390
2 changed files with 25 additions and 7 deletions

View File

@@ -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;