提交 f034031f 编写于 作者: O o2sword

人员组织导入返回结果集缓存存储及读取错误

上级 5e5ce389
......@@ -17,7 +17,7 @@ public class ActionGetResult extends BaseAction {
protected ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag) throws Exception {
logger.debug(effectivePerson, "flag:{}.", flag);
ActionResult<Wo> result = new ActionResult<>();
CacheKey cacheKey = new CacheKey(this.getClass(), flag);
CacheKey cacheKey = new CacheKey(flag);
Optional<?> optional = CacheManager.get(this.cache, cacheKey);
if (!optional.isPresent()) {
throw new ExceptionResultNotFound(flag);
......
......@@ -67,8 +67,8 @@ class ActionInput extends BaseAction {
cacheInputResult.setName(name);
cacheInputResult.setBytes(os.toByteArray());
String flag = StringTools.uniqueToken();
CacheKey cacheKey = new CacheKey(this.getClass(), flag);
CacheManager.put(business.cache(), cacheKey, cacheInputResult);
CacheKey cacheKey = new CacheKey(flag);
CacheManager.put(this.cache, cacheKey, cacheInputResult);
CacheManager.notify(Person.class);
CacheManager.notify(Group.class);
CacheManager.notify(Role.class);
......
......@@ -101,8 +101,8 @@ class ActionInputAll extends BaseAction {
cacheInputResult.setName(name);
cacheInputResult.setBytes(os.toByteArray());
String flag = StringTools.uniqueToken();
CacheKey cacheKey = new CacheKey(this.getClass(), flag);
CacheManager.put(business.cache(), cacheKey, cacheInputResult);
CacheKey cacheKey = new CacheKey(flag);
CacheManager.put(this.cache, cacheKey, cacheInputResult);
CacheManager.notify(Person.class);
CacheManager.notify(Group.class);
CacheManager.notify(Role.class);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册