调整枪口状态缓存时间为5分钟

This commit is contained in:
Guoqs
2024-09-03 15:20:17 +08:00
parent f7f1d76083
commit 10fa992c75
2 changed files with 2 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ public class AbsEBikeMessage {
};
public static void main(String[] args) {
String s = "444e592700198bca00072482333000000030313000300000000000000000000000000000003000300030e104";
String s = "444e592300198bca00a6158233300000000031300013273881012409031435319214300030002107";
String msg82 = "44 4E 59 26 00 3B 37 AB 04 02 00 82 00 64 01 00 00 01 01 00 00 12 34 56 78 12 34 56 78 12 34 56 78 12 34 56 78 80 70 88 13 F8 08";
s = s.replace(" ", "");
byte[] messageBytes = BytesUtil.hexStringToByteArray(s);

View File

@@ -606,7 +606,7 @@ public class PileConnectorInfoServiceImpl implements PileConnectorInfoService {
// 只修改一个枪口的状态
num = pileConnectorInfoMapper.updateConnectorStatus(pileConnectorCode, status);
deleteRedisByPileSnOrPileConnectorCode(pileSn, pileConnectorCode);
redisCache.setCacheObject(redisKey, status, CacheConstants.cache_expire_time_3m);
redisCache.setCacheObject(redisKey, status, CacheConstants.cache_expire_time_5m);
// 异步放缓存
CompletableFuture.runAsync(() -> statusChange(pileConnectorCode));