mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-10-14 06:00:23 +00:00
fix 修复 新建租户未复制工作流相关数据问题
This commit is contained in:
@@ -104,6 +104,12 @@
|
||||
<artifactId>ruoyi-api-resource</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- RuoYi Api System -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-api-workflow</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
@@ -1,15 +1,16 @@
|
||||
package org.dromara.system.service.impl;
|
||||
|
||||
import cn.hutool.crypto.digest.BCrypt;
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.RandomUtil;
|
||||
import cn.hutool.crypto.digest.BCrypt;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
import org.dromara.common.core.constant.CacheNames;
|
||||
import org.dromara.common.core.constant.Constants;
|
||||
import org.dromara.common.core.constant.SystemConstants;
|
||||
@@ -29,6 +30,7 @@ import org.dromara.system.domain.bo.SysTenantBo;
|
||||
import org.dromara.system.domain.vo.SysTenantVo;
|
||||
import org.dromara.system.mapper.*;
|
||||
import org.dromara.system.service.ISysTenantService;
|
||||
import org.dromara.workflow.api.RemoteWorkflowService;
|
||||
import org.springframework.cache.annotation.CacheEvict;
|
||||
import org.springframework.cache.annotation.Cacheable;
|
||||
import org.springframework.stereotype.Service;
|
||||
@@ -57,6 +59,9 @@ public class SysTenantServiceImpl implements ISysTenantService {
|
||||
private final SysDictDataMapper dictDataMapper;
|
||||
private final SysConfigMapper configMapper;
|
||||
|
||||
@DubboReference(mock = "true")
|
||||
private RemoteWorkflowService remoteWorkflowService;
|
||||
|
||||
/**
|
||||
* 查询租户
|
||||
*/
|
||||
@@ -206,6 +211,9 @@ public class SysTenantServiceImpl implements ISysTenantService {
|
||||
config.setUpdateTime(null);
|
||||
}
|
||||
configMapper.insertBatch(sysConfigList);
|
||||
|
||||
// 新增租户流程定义
|
||||
remoteWorkflowService.syncDef(tenantId);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user