ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysTenantServiceImpl.java
@@ -444,12 +444,14 @@ } } } 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)); }