mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-10-14 06:00:23 +00:00
fix 修复 oracle 新建租户报错问题
This commit is contained in:
@@ -176,10 +176,20 @@ public class SysTenantServiceImpl implements ISysTenantService {
|
||||
for (SysDictType dictType : dictTypeList) {
|
||||
dictType.setDictId(null);
|
||||
dictType.setTenantId(tenantId);
|
||||
dictType.setCreateDept(null);
|
||||
dictType.setCreateBy(null);
|
||||
dictType.setCreateTime(null);
|
||||
dictType.setUpdateBy(null);
|
||||
dictType.setUpdateTime(null);
|
||||
}
|
||||
for (SysDictData dictData : dictDataList) {
|
||||
dictData.setDictCode(null);
|
||||
dictData.setTenantId(tenantId);
|
||||
dictData.setCreateDept(null);
|
||||
dictData.setCreateBy(null);
|
||||
dictData.setCreateTime(null);
|
||||
dictData.setUpdateBy(null);
|
||||
dictData.setUpdateTime(null);
|
||||
}
|
||||
dictTypeMapper.insertBatch(dictTypeList);
|
||||
dictDataMapper.insertBatch(dictDataList);
|
||||
@@ -189,6 +199,11 @@ public class SysTenantServiceImpl implements ISysTenantService {
|
||||
for (SysConfig config : sysConfigList) {
|
||||
config.setConfigId(null);
|
||||
config.setTenantId(tenantId);
|
||||
config.setCreateDept(null);
|
||||
config.setCreateBy(null);
|
||||
config.setCreateTime(null);
|
||||
config.setUpdateBy(null);
|
||||
config.setUpdateTime(null);
|
||||
}
|
||||
configMapper.insertBatch(sysConfigList);
|
||||
return true;
|
||||
|
@@ -219,6 +219,11 @@ public class FlwDefinitionServiceImpl implements IFlwDefinitionService {
|
||||
.eq(FlowCategory::getTenantId, DEFAULT_TENANT_ID).eq(FlowCategory::getCategoryId, FlowConstant.FLOW_CATEGORY_ID));
|
||||
flowCategory.setCategoryId(null);
|
||||
flowCategory.setTenantId(tenantId);
|
||||
flowCategory.setCreateDept(null);
|
||||
flowCategory.setCreateBy(null);
|
||||
flowCategory.setCreateTime(null);
|
||||
flowCategory.setUpdateBy(null);
|
||||
flowCategory.setUpdateTime(null);
|
||||
flwCategoryMapper.insert(flowCategory);
|
||||
List<Long> defIds = StreamUtils.toList(flowDefinitions, FlowDefinition::getId);
|
||||
List<FlowNode> flowNodes = flowNodeMapper.selectList(new LambdaQueryWrapper<FlowNode>().in(FlowNode::getDefinitionId, defIds));
|
||||
|
Reference in New Issue
Block a user