From 5b3901770843cab6ba0e434fdbe3e3302c9ff88e Mon Sep 17 00:00:00 2001 From: 心如止水 <8902735+gaobinbin991314@user.noreply.gitee.com> Date: 星期四, 30 三月 2023 18:50:58 +0800 Subject: [PATCH] !324 系统配置读取方式变更 1、前端登录页面注册开关 对接后端数据库 2、密码最大错误次数与锁定时间转移到数据库 3、短信开关与验证码模板id 转移到数据库参数管理内 --- ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java index 80de8c5..f3ef002 100644 --- a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java @@ -6,6 +6,7 @@ import com.ruoyi.common.mybatis.annotation.DataPermission; import com.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; import com.ruoyi.system.domain.SysDept; +import com.ruoyi.system.domain.vo.SysDeptVo; import org.apache.ibatis.annotations.Param; import java.util.List; @@ -15,7 +16,7 @@ * * @author Lion Li */ -public interface SysDeptMapper extends BaseMapperPlus<SysDeptMapper, SysDept, SysDept> { +public interface SysDeptMapper extends BaseMapperPlus<SysDept, SysDeptVo> { /** * 鏌ヨ閮ㄩ棬绠$悊鏁版嵁 @@ -26,7 +27,12 @@ @DataPermission({ @DataColumn(key = "deptName", value = "dept_id") }) - List<SysDept> selectDeptList(@Param(Constants.WRAPPER) Wrapper<SysDept> queryWrapper); + List<SysDeptVo> selectDeptList(@Param(Constants.WRAPPER) Wrapper<SysDept> queryWrapper); + + @DataPermission({ + @DataColumn(key = "deptName", value = "dept_id") + }) + SysDeptVo selectDeptById(Long deptId); /** * 鏍规嵁瑙掕壊ID鏌ヨ閮ㄩ棬鏍戜俊鎭� -- Gitblit v1.9.3