mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-10 18:30:02 +08:00
update 电单车
This commit is contained in:
@@ -1950,10 +1950,18 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
|||||||
if (StringUtils.isBlank(transactionCode)) {
|
if (StringUtils.isBlank(transactionCode)) {
|
||||||
return resultList;
|
return resultList;
|
||||||
}
|
}
|
||||||
String pileConnectorCode = transactionCode.substring(0, 16);
|
String pileConnectorCode = transactionCode.substring(0, 16); // 汽车桩
|
||||||
String redisKey = CacheConstants.PILE_REAL_TIME_MONITOR_DATA + pileConnectorCode + "_" + transactionCode;
|
String redisKey = CacheConstants.PILE_REAL_TIME_MONITOR_DATA + pileConnectorCode + "_" + transactionCode;
|
||||||
// 拿到所有数据
|
// 拿到所有数据
|
||||||
Map<Object, Object> map = redisCache.hmget(redisKey);
|
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()) {
|
if (map != null && !map.isEmpty()) {
|
||||||
List<String> keyList = map.keySet().stream()
|
List<String> keyList = map.keySet().stream()
|
||||||
.map(x -> (String) x)
|
.map(x -> (String) x)
|
||||||
|
|||||||
Reference in New Issue
Block a user