Commit 9fe0de98 authored by suhuiguang's avatar suhuiguang

1.增加缓存删除操作,否则重启时缓存未清空

parent 6b349ca3
......@@ -2,6 +2,7 @@ package com.yeejoin.amos;
import com.alibaba.fastjson.JSONObject;
import com.yeejoin.amos.boot.biz.common.utils.oConvertUtils;
import com.yeejoin.amos.boot.module.tcm.api.common.BizCommonConstant;
import com.yeejoin.amos.boot.module.tcm.biz.listener.BaseEnterpriseMqTtlListener;
import com.yeejoin.amos.boot.module.tcm.biz.listener.CarcylUnitInspectMqTtlListener;
import com.yeejoin.amos.boot.module.tcm.biz.listener.PrivilegeCompanyDeleteListener;
......@@ -135,10 +136,19 @@ public class AmosTcmApplication {
//3.管辖机构放redis缓存(依赖1)
equipmentCategoryService.creatTree();
//4.区域放redis缓存(依赖1)
//4.1先删除缓存
redisUtil.del(BizCommonConstant.REGION_TREE_REDIS_KEY);
//4.2再初始化
unitInfoService.getAllRegionTree();
//5.企业类型放redis缓存(依赖1)
//5.1先删除缓存
redisUtil.del(BizCommonConstant.REGION_TREE_REDIS_KEY);
//5.2再初始化
regUnitInfoService.setAndGetUnitTypeList();
//6.许可项目放redis缓存
//6.1先删除缓存
redisUtil.del(BizCommonConstant.TCM_ALL_DATA_DICT_REDIS_KEY);
//6.2再初始化
regUnitInfoService.setAllDataDictionaryList();
}
......
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