|
@@ -153,7 +153,6 @@ public class SysStorageConfigServiceImpl implements ISysStorageConfigService, Co
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- @Transactional(rollbackFor = Exception.class)
|
|
|
|
|
public void setMasterConfig(String configId) {
|
|
public void setMasterConfig(String configId) {
|
|
|
//将主配置设置为副配置
|
|
//将主配置设置为副配置
|
|
|
baseRepository.update(null,new LambdaUpdateWrapper<SysStorageConfigPO>()
|
|
baseRepository.update(null,new LambdaUpdateWrapper<SysStorageConfigPO>()
|
|
@@ -165,7 +164,7 @@ public class SysStorageConfigServiceImpl implements ISysStorageConfigService, Co
|
|
|
.eq(SysStorageConfigPO::getId,configId)
|
|
.eq(SysStorageConfigPO::getId,configId)
|
|
|
.set(SysStorageConfigPO::getMaster,true));
|
|
.set(SysStorageConfigPO::getMaster,true));
|
|
|
|
|
|
|
|
- eventBus.publishShare(STORAGE_DEFAULT_TOPIC,new Object());
|
|
|
|
|
|
|
+ eventBus.publishShare(STORAGE_DEFAULT_TOPIC,configId);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|