From 876145dcece54cadca3f6f483b081b100fac6b46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Sun, 12 Mar 2023 19:03:18 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E5=88=9B=E5=BB=BA=E7=A7=9F=E6=88=B7=E6=B2=A1=E5=BF=85?= =?UTF-8?q?=E8=A6=81=E7=9A=84=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/controller/system/SysTenantController.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/system/SysTenantController.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/system/SysTenantController.java index 9cd6b813..d626fe6d 100644 --- a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/system/SysTenantController.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/system/SysTenantController.java @@ -17,7 +17,6 @@ import com.ruoyi.common.mybatis.core.page.TableDataInfo; import com.ruoyi.common.tenant.helper.TenantHelper; import com.ruoyi.common.web.core.BaseController; import com.ruoyi.system.domain.bo.SysTenantBo; -import com.ruoyi.system.domain.bo.SysUserBo; import com.ruoyi.system.domain.vo.SysTenantVo; import com.ruoyi.system.service.ISysTenantService; import com.ruoyi.system.service.ISysUserService; @@ -93,12 +92,6 @@ public class SysTenantController extends BaseController { if (!sysTenantService.checkCompanyNameUnique(bo)) { throw new ServiceException("新增租户'" + bo.getCompanyName() + "'失败,企业名称已存在"); } - SysUserBo userBo = new SysUserBo(); - userBo.setUserName(bo.getUsername()); - // 判断用户名是否重复 - if (!sysUserService.checkUserNameUnique(userBo)) { - throw new ServiceException("新增用户'" + bo.getUsername() + "'失败,登录账号已存在"); - } return toAjax(sysTenantService.insertByBo(bo)); }