|
|
@@ -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;
|
|
|
}
|
|
|
|