|
|
@@ -150,6 +150,8 @@ public class SysTenantServiceImpl extends ServiceImpl<SysTenantMapper, SysTenant
|
|
|
sysTenant.setHostPc(bo.getHostPc());
|
|
|
sysTenant.setHostH5(bo.getHostH5());
|
|
|
sysTenant.setHostLive(bo.getHostLive());
|
|
|
+ sysTenant.setHostH5Seller(null);
|
|
|
+ sysTenant.setHostAdmin(null);
|
|
|
//生成tenantId
|
|
|
Long newTenantId = createTenantId();
|
|
|
sysTenant.setTenantId(newTenantId);
|
|
|
@@ -341,13 +343,6 @@ public class SysTenantServiceImpl extends ServiceImpl<SysTenantMapper, SysTenant
|
|
|
}
|
|
|
|
|
|
private void initConfigAndDict(Long newTenantId, Long tenantId) {
|
|
|
- SysConfig config = iSysConfigService.getSysConfigByKeyTenant("home.header", newTenantId);
|
|
|
- if (ObjectUtils.isNull(config)){
|
|
|
- SysConfig sysConfigByKeyTenant = iSysConfigService.getSysConfigByKeyTenant("home.header", tenantId);
|
|
|
- sysConfigByKeyTenant.setTenantId(newTenantId);
|
|
|
- sysConfigByKeyTenant.setConfigId(null);
|
|
|
- iSysConfigService.save(sysConfigByKeyTenant);
|
|
|
- }
|
|
|
//字典
|
|
|
List<SysDictType> dictTypes = iSysDictTypeService.getListByTenant(tenantId);
|
|
|
if (CollectionUtils.isEmpty(dictTypes)){
|