Skip to content

Commit

Permalink
fix 修复 同步字典存储是未忽略租户
Browse files Browse the repository at this point in the history
  • Loading branch information
JavaLionLi committed Oct 1, 2024
1 parent e00b300 commit 0db17ba
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -444,12 +444,14 @@ public void syncTenantDict() {
}
}
}
if (CollUtil.isNotEmpty(saveTypeList)) {
dictTypeMapper.insertBatch(saveTypeList);
}
if (CollUtil.isNotEmpty(saveDataList)) {
dictDataMapper.insertBatch(saveDataList);
}
TenantHelper.ignore(() -> {
if (CollUtil.isNotEmpty(saveTypeList)) {
dictTypeMapper.insertBatch(saveTypeList);
}
if (CollUtil.isNotEmpty(saveDataList)) {
dictDataMapper.insertBatch(saveDataList);
}
});
for (String tenantId : set) {
TenantHelper.dynamic(tenantId, () -> CacheUtils.clear(CacheNames.SYS_DICT));
}
Expand Down

0 comments on commit 0db17ba

Please sign in to comment.