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

启用新增租户时发短信

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