fix 修复 同步字典存储是未忽略租户

2.X
疯狂的狮子Li 5 months ago
parent e00b300017
commit 0db17bac6c

@ -444,12 +444,14 @@ public class SysTenantServiceImpl implements ISysTenantService {
} }
} }
} }
TenantHelper.ignore(() -> {
if (CollUtil.isNotEmpty(saveTypeList)) { if (CollUtil.isNotEmpty(saveTypeList)) {
dictTypeMapper.insertBatch(saveTypeList); dictTypeMapper.insertBatch(saveTypeList);
} }
if (CollUtil.isNotEmpty(saveDataList)) { if (CollUtil.isNotEmpty(saveDataList)) {
dictDataMapper.insertBatch(saveDataList); dictDataMapper.insertBatch(saveDataList);
} }
});
for (String tenantId : set) { for (String tenantId : set) {
TenantHelper.dynamic(tenantId, () -> CacheUtils.clear(CacheNames.SYS_DICT)); TenantHelper.dynamic(tenantId, () -> CacheUtils.clear(CacheNames.SYS_DICT));
} }

Loading…
Cancel
Save