update 电单车

This commit is contained in:
Guoqs
2024-09-12 16:45:04 +08:00
parent a12efdaa9b
commit e154b0c0dc

View File

@@ -1950,10 +1950,18 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
if (StringUtils.isBlank(transactionCode)) {
return resultList;
}
String pileConnectorCode = transactionCode.substring(0, 16);
String pileConnectorCode = transactionCode.substring(0, 16); // 汽车桩
String redisKey = CacheConstants.PILE_REAL_TIME_MONITOR_DATA + pileConnectorCode + "_" + transactionCode;
// 拿到所有数据
Map<Object, Object> map = redisCache.hmget(redisKey);
if (map == null) {
// 按照电单车重新查
pileConnectorCode = transactionCode.substring(0, 10); // 电单车车桩
redisKey = CacheConstants.PILE_REAL_TIME_MONITOR_DATA + pileConnectorCode + "_" + transactionCode;
map = redisCache.hmget(redisKey);
}
if (map != null && !map.isEmpty()) {
List<String> keyList = map.keySet().stream()
.map(x -> (String) x)