mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	fix 修复 oracle 新建租户报错问题
This commit is contained in:
		@@ -179,10 +179,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);
 | 
			
		||||
@@ -192,6 +202,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);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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