Commit d94dfb44 authored by 施翔轲's avatar 施翔轲

启用新增租户时发短信

parent 827943de
......@@ -22,7 +22,6 @@ import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
......@@ -36,9 +35,7 @@ import java.util.Map;
@Service
public class ISysTenantPackageServiceImpl implements ISysTenantPackageService {
@Resource
private final SysTenantPackageMapper baseMapper;
@Resource
private final SysTenantMapper tenantMapper;
/**
......
......@@ -16,6 +16,7 @@ import com.dsk.common.core.domain.entity.SysDictData;
import com.dsk.common.core.domain.entity.SysDictType;
import com.dsk.common.core.page.TableDataInfo;
import com.dsk.common.exception.ServiceException;
import com.dsk.common.utils.DingTalkUtil;
import com.dsk.common.utils.PasswordUtils;
import com.dsk.common.utils.StringUtils;
import com.dsk.system.domain.*;
......@@ -29,7 +30,6 @@ import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
......@@ -43,27 +43,17 @@ import java.util.List;
@RequiredArgsConstructor
@Service
public class ISysTenantServiceImpl implements ISysTenantService {
@Resource
private final SysTenantMapper baseMapper;
@Resource
private final SysTenantPackageMapper tenantPackageMapper;
@Resource
private final SysRoleMapper roleMapper;
@Resource
private final SysRoleMenuMapper roleMenuMapper;
@Resource
private final SysDeptMapper deptMapper;
@Resource
private final SysRoleDeptMapper roleDeptMapper;
@Resource
private final SysUserMapper userMapper;
@Resource
private final SysUserRoleMapper userRoleMapper;
@Resource
private final SysDictTypeMapper dictTypeMapper;
@Resource
private final SysDictDataMapper dictDataMapper;
@Resource
private final SysConfigMapper configMapper;
/**
......@@ -233,8 +223,7 @@ public class ISysTenantServiceImpl implements ISysTenantService {
+ "您好,您已经成功注册央企数字经营管理系统,请使用手机号码登录,初始密码为"
+ password
+ "。友情提示:为了您的账号安全,请勿泄露密码。若需要修改密码,请联系管理员。";
//DingTalkUtil.sendDingTalkMsg(content);
System.out.println("👉🏻:" + content);
DingTalkUtil.sendDingTalkMsg(content);
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment