Browse Source

1.增加缓存时间

master
pref_mail@163.com 8 months ago
parent
commit
eb0e6b3675
  1. 2
      blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/aspect/JobAnnotationAspect.java
  2. 2
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/aspect/JobAnnotationAspect.java
  3. 2
      blade-service/logpm-factory-data/logpm-factory-data-jinpai/src/main/java/com/logpm/factorydata/jinpai/aspect/JobAnnotationAspect.java
  4. 2
      blade-service/logpm-factory/src/main/java/com/logpm/factory/aspect/JobAnnotationAspect.java
  5. 2
      blade-service/logpm-factory/src/main/java/com/logpm/factory/interceptor/LocalServerLoginAccountsInterceptor.java
  6. 2
      blade-service/logpm-patch/src/main/java/com/logpm/patch/aspect/JobAnnotationAspect.java
  7. 2
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/config/interceptor/LocalServerLoginAccountsInterceptor.java

2
blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/aspect/JobAnnotationAspect.java

@ -81,7 +81,7 @@ public class JobAnnotationAspect {
HttpResponse execute = urlRequest.form(params).execute(); HttpResponse execute = urlRequest.form(params).execute();
String body = execute.body(); String body = execute.body();
data = JSONObject.parseObject(body); data = JSONObject.parseObject(body);
bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER+account,data,20L); bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER+account,data,3200L);
redisLockClient.unLock("local_server_user", LockType.FAIR); redisLockClient.unLock("local_server_user", LockType.FAIR);
} }
} }

2
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/aspect/JobAnnotationAspect.java

@ -81,7 +81,7 @@ public class JobAnnotationAspect {
HttpResponse execute = urlRequest.form(params).execute(); HttpResponse execute = urlRequest.form(params).execute();
String body = execute.body(); String body = execute.body();
data = JSONObject.parseObject(body); data = JSONObject.parseObject(body);
bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER+account,data,20L); bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER+account,data,3200L);
redisLockClient.unLock("local_server_user", LockType.FAIR); redisLockClient.unLock("local_server_user", LockType.FAIR);
} }
} }

2
blade-service/logpm-factory-data/logpm-factory-data-jinpai/src/main/java/com/logpm/factorydata/jinpai/aspect/JobAnnotationAspect.java

@ -81,7 +81,7 @@ public class JobAnnotationAspect {
HttpResponse execute = urlRequest.form(params).execute(); HttpResponse execute = urlRequest.form(params).execute();
String body = execute.body(); String body = execute.body();
data = JSONObject.parseObject(body); data = JSONObject.parseObject(body);
bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER+account,data,20L); bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER+account,data,3200L);
redisLockClient.unLock("local_server_user", LockType.FAIR); redisLockClient.unLock("local_server_user", LockType.FAIR);
} }
} }

2
blade-service/logpm-factory/src/main/java/com/logpm/factory/aspect/JobAnnotationAspect.java

@ -81,7 +81,7 @@ public class JobAnnotationAspect {
HttpResponse execute = urlRequest.form(params).execute(); HttpResponse execute = urlRequest.form(params).execute();
String body = execute.body(); String body = execute.body();
data = JSONObject.parseObject(body); data = JSONObject.parseObject(body);
bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER+account,data,20L); bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER+account,data,3200L);
redisLockClient.unLock("local_server_user", LockType.FAIR); redisLockClient.unLock("local_server_user", LockType.FAIR);
} }
} }

2
blade-service/logpm-factory/src/main/java/com/logpm/factory/interceptor/LocalServerLoginAccountsInterceptor.java

@ -63,7 +63,7 @@ public class LocalServerLoginAccountsInterceptor extends HandlerInterceptorAdapt
HttpResponse execute = urlRequest.form(params).execute(); HttpResponse execute = urlRequest.form(params).execute();
String body = execute.body(); String body = execute.body();
data = JSONObject.parseObject(body); data = JSONObject.parseObject(body);
bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER+account,data,20L); bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER+account,data,3200L);
redisLockClient.unLock("local_server_user", LockType.FAIR); redisLockClient.unLock("local_server_user", LockType.FAIR);
} }
} }

2
blade-service/logpm-patch/src/main/java/com/logpm/patch/aspect/JobAnnotationAspect.java

@ -81,7 +81,7 @@ public class JobAnnotationAspect {
HttpResponse execute = urlRequest.form(params).execute(); HttpResponse execute = urlRequest.form(params).execute();
String body = execute.body(); String body = execute.body();
data = JSONObject.parseObject(body); data = JSONObject.parseObject(body);
bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER+account,data,20L); bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER+account,data,3200L);
redisLockClient.unLock("local_server_user", LockType.FAIR); redisLockClient.unLock("local_server_user", LockType.FAIR);
} }
} }

2
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/config/interceptor/LocalServerLoginAccountsInterceptor.java

@ -62,7 +62,7 @@ public class LocalServerLoginAccountsInterceptor extends HandlerInterceptorAdapt
HttpResponse execute = urlRequest.form(params).execute(); HttpResponse execute = urlRequest.form(params).execute();
String body = execute.body(); String body = execute.body();
data = JSONObject.parseObject(body); data = JSONObject.parseObject(body);
bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER+account,data,20L); bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER+account,data,3200L);
redisLockClient.unLock("local_server_user", LockType.FAIR); redisLockClient.unLock("local_server_user", LockType.FAIR);
} }
} }

Loading…
Cancel
Save