mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
保存蓝牙充电记录
This commit is contained in:
@@ -368,6 +368,16 @@ public class YKCUtils {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据的交易码获取当前soc
|
||||
* @param transactionCode
|
||||
*/
|
||||
public static String getCurrentSOC(String transactionCode) {
|
||||
String hashKey = CacheConstants.GET_THE_SOC + transactionCode;
|
||||
RedisCache staticRedisCache = StaticRedisCache.staticRedisCache;
|
||||
Map<String, Object> cacheMap = staticRedisCache.getCacheMap(hashKey);
|
||||
// 获取最小值和最大值, 两个值中最大的为当前soc
|
||||
return (String) cacheMap.get("max");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user