修改缓存

This commit is contained in:
wanggeng 2021-10-26 11:47:07 +08:00
parent 3349307474
commit b35498a75b
2 changed files with 2 additions and 0 deletions

View File

@ -639,6 +639,7 @@ public class CommunityBossServiceImpl extends AbstractService implements ICommun
// 清空网格员缓存
private void clearCommunityBossCollection() {
mongoTemplate.remove(new Query(), MongoCollections.LIST_USER_EASYUI_TREE.getCollection());
mongoTemplate.remove(new Query(), MongoCollections.LIST_AREA_TREE.getCollection());
mongoTemplate.remove(new Query(), MongoCollections.LIST_USER_AND_POINTS_BY_LEVEL_BY_GRID_SERVICE_1.getCollection());
mongoTemplate.remove(new Query(), MongoCollections.LIST_USER_AND_POINTS_BY_LEVEL_BY_GRID_SERVICE_2.getCollection());
mongoTemplate.remove(new Query(), MongoCollections.LIST_USER_AND_POINTS_BY_LEVEL_BY_GRID_SERVICE_3.getCollection());

View File

@ -969,6 +969,7 @@ public class UserPointsServiceImpl extends AbstractService implements IUserPoint
// 清空网格员缓存
private void clearCommunityBossCollection() {
mongoTemplate.remove(new Query(), MongoCollections.LIST_USER_EASYUI_TREE.getCollection());
mongoTemplate.remove(new Query(), MongoCollections.LIST_AREA_TREE.getCollection());
mongoTemplate.remove(new Query(), MongoCollections.LIST_USER_AND_POINTS_BY_LEVEL_BY_GRID_SERVICE_1.getCollection());
mongoTemplate.remove(new Query(), MongoCollections.LIST_USER_AND_POINTS_BY_LEVEL_BY_GRID_SERVICE_2.getCollection());
mongoTemplate.remove(new Query(), MongoCollections.LIST_USER_AND_POINTS_BY_LEVEL_BY_GRID_SERVICE_3.getCollection());