保存蓝牙充电记录

This commit is contained in:
Guoqs
2024-11-19 16:20:10 +08:00
parent 4df6a9f53a
commit 54d9a4e91e
4 changed files with 183 additions and 1 deletions

View File

@@ -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");
}
}