Commit fb209aaf authored by 赵啸非's avatar 赵啸非

修改办件查询列表

parent f0743212
...@@ -208,8 +208,10 @@ public class WindowBusinessServiceImpl extends AbstractCRUDServiceImpl<WindowBus ...@@ -208,8 +208,10 @@ public class WindowBusinessServiceImpl extends AbstractCRUDServiceImpl<WindowBus
} }
private void updateWindowBusinessCacheResult(WindowBusinessEntity entity, Context context) { private void updateWindowBusinessCacheResult(WindowBusinessEntity entity, Context context) {
log.info("更新站点业务缓存 SiteBusinessId:{}", entity.getSiteBusinessId());
Long siteBusinessId = entity.getSiteBusinessId(); Long siteBusinessId = entity.getSiteBusinessId();
String cacheResult = cacheService.get(KEY_SEARCH_SITEBUSINESSID_CACHE + siteBusinessId, String.class); cacheService.get(KEY_SEARCH_SITEBUSINESSID_CACHE + siteBusinessId, String.class);
//更新查询结果 //更新查询结果
//查询数据库 //查询数据库
...@@ -220,11 +222,8 @@ public class WindowBusinessServiceImpl extends AbstractCRUDServiceImpl<WindowBus ...@@ -220,11 +222,8 @@ public class WindowBusinessServiceImpl extends AbstractCRUDServiceImpl<WindowBus
if (!ObjectUtils.isEmpty(result.getList())) { if (!ObjectUtils.isEmpty(result.getList())) {
cacheService.set(KEY_SEARCH_SITEBUSINESSID_CACHE + siteBusinessId, JSON.toJSONString(result), KEY_SEARCH_TIMEOUTT_CACHE); cacheService.set(KEY_SEARCH_SITEBUSINESSID_CACHE + siteBusinessId, JSON.toJSONString(result), KEY_SEARCH_TIMEOUTT_CACHE);
} }
Long windowId = entity.getWindowId(); Long windowId = entity.getWindowId();
cacheService.get(KEY_SEARCH_WINDOWID_CACHE + windowId, String.class); cacheService.get(KEY_SEARCH_WINDOWID_CACHE + windowId, String.class);
//查询数据库 //查询数据库
pageInfo = new PageInfo(); pageInfo = new PageInfo();
pageInfo.setPrePageResult(-1); pageInfo.setPrePageResult(-1);
...@@ -234,7 +233,6 @@ public class WindowBusinessServiceImpl extends AbstractCRUDServiceImpl<WindowBus ...@@ -234,7 +233,6 @@ public class WindowBusinessServiceImpl extends AbstractCRUDServiceImpl<WindowBus
if (!ObjectUtils.isEmpty(result.getList())) { if (!ObjectUtils.isEmpty(result.getList())) {
cacheService.set(KEY_SEARCH_WINDOWID_CACHE + windowId, JSON.toJSONString(result), KEY_SEARCH_TIMEOUTT_CACHE); cacheService.set(KEY_SEARCH_WINDOWID_CACHE + windowId, JSON.toJSONString(result), KEY_SEARCH_TIMEOUTT_CACHE);
} }
//窗口列表更新 //窗口列表更新
Set<String> scanKeys = cacheService.scan(KEY_SEARCH_WINDOWID_LIST_CACHE); Set<String> scanKeys = cacheService.scan(KEY_SEARCH_WINDOWID_LIST_CACHE);
for (String scanKey : scanKeys) { for (String scanKey : scanKeys) {
...@@ -265,11 +263,8 @@ public class WindowBusinessServiceImpl extends AbstractCRUDServiceImpl<WindowBus ...@@ -265,11 +263,8 @@ public class WindowBusinessServiceImpl extends AbstractCRUDServiceImpl<WindowBus
} else { } else {
} }
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment