From 34b0f148409d90756e94378f86bd94aab225bd0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=86=9B?= Date: Wed, 20 Sep 2023 14:38:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3service=E5=BE=AA=E7=8E=AF?= =?UTF-8?q?=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/platform/service/impl/SysUserServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform-common/src/main/java/com/platform/service/impl/SysUserServiceImpl.java b/platform-common/src/main/java/com/platform/service/impl/SysUserServiceImpl.java index 6b28ce1a..6d558b7d 100644 --- a/platform-common/src/main/java/com/platform/service/impl/SysUserServiceImpl.java +++ b/platform-common/src/main/java/com/platform/service/impl/SysUserServiceImpl.java @@ -1,11 +1,11 @@ package com.platform.service.impl; +import com.platform.dao.SysRoleDao; import com.platform.dao.SysUserDao; import com.platform.entity.SysUserEntity; import com.platform.entity.UserWindowDto; import com.platform.page.Page; import com.platform.page.PageHelper; -import com.platform.service.SysRoleService; import com.platform.service.SysUserRoleService; import com.platform.service.SysUserService; import com.platform.utils.Constant; @@ -37,7 +37,7 @@ public class SysUserServiceImpl implements SysUserService { @Autowired private SysUserRoleService sysUserRoleService; @Autowired - private SysRoleService sysRoleService; + private SysRoleDao sysRoleDao; @Override public List queryAllPerms(Long userId) { @@ -126,7 +126,7 @@ private void checkRole(SysUserEntity user) { } //查询用户创建的角色列表 - List roleIdList = sysRoleService.queryRoleIdList(user.getCreateUserId()); + List roleIdList = sysRoleDao.queryRoleIdList(user.getCreateUserId()); //判断是否越权 if (!roleIdList.containsAll(user.getRoleIdList())) {