mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
调整枪口状态缓存时间为5分钟
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user