提交 0e6c7d24 编写于 作者: L luojing

teamwork模板缓存问题修复

上级 1e51e9e4
......@@ -64,7 +64,7 @@ public class ActionListNextWithFilter extends BaseAction {
}
if( Boolean.TRUE.equals( check ) ){
cacheKey = ApplicationCache.concreteCacheKey( "ActionListNextWithFilter", effectivePerson.getDistinguishedName(), flag, count,
/*cacheKey = ApplicationCache.concreteCacheKey( "ActionListNextWithFilter", effectivePerson.getDistinguishedName(), flag, count,
wrapIn.getOrderField(), wrapIn.getOrderType(), queryFilter.getContentSHA1() );
element = projectTemplateCache.get( cacheKey );
......@@ -72,7 +72,7 @@ public class ActionListNextWithFilter extends BaseAction {
resultObject = (ResultObject) element.getObjectValue();
result.setCount( resultObject.getTotal() );
result.setData( resultObject.getWos() );
} else {
} else {*/
try {
//获取用户能查看的所有的项目信息ID列表,最多查询2000条数据
List<String> projectIds = projectTemplateQueryService.listAllProjectTemplateIds( effectivePerson, 2000, queryFilter );
......@@ -112,7 +112,7 @@ public class ActionListNextWithFilter extends BaseAction {
}
}
resultObject = new ResultObject( total, wos );
projectTemplateCache.put(new Element( cacheKey, resultObject ));
//projectTemplateCache.put(new Element( cacheKey, resultObject ));
result.setCount( resultObject.getTotal() );
result.setData( resultObject.getWos() );
......@@ -123,7 +123,7 @@ public class ActionListNextWithFilter extends BaseAction {
result.error(e);
logger.error(e, effectivePerson, request, null);
}
}
//}
}
return result;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册