From 14745366be9d5ab84dca983d55aefde4f11be0a7 Mon Sep 17 00:00:00 2001 From: caixiang <939387484@qq.com> Date: Wed, 1 Mar 2023 12:05:06 +0800 Subject: [PATCH] commit for pull --- ym-admin/src/main/resources/mapper/SysDeptDao.xml | 9 +++++---- ym-admin/src/main/resources/mapper/SysDictDataDao.xml | 2 +- ym-admin/src/main/resources/mapper/SysDictTypeDao.xml | 2 +- ym-admin/src/main/resources/mapper/SysMenuDao.xml | 6 +++--- ym-admin/src/main/resources/mapper/SysParamsDao.xml | 5 +++-- .../src/main/resources/mapper/SysRoleDataScopeDao.xml | 4 +++- ym-admin/src/main/resources/mapper/SysRoleMenuDao.xml | 5 +++-- ym-admin/src/main/resources/mapper/SysRoleUserDao.xml | 4 +++- ym-admin/src/main/resources/mapper/SysUserDao.xml | 11 ++++++----- 9 files changed, 28 insertions(+), 20 deletions(-) diff --git a/ym-admin/src/main/resources/mapper/SysDeptDao.xml b/ym-admin/src/main/resources/mapper/SysDeptDao.xml index a558f10..5101128 100644 --- a/ym-admin/src/main/resources/mapper/SysDeptDao.xml +++ b/ym-admin/src/main/resources/mapper/SysDeptDao.xml @@ -6,8 +6,9 @@ select t1.*,(select t2.name from sys_dept t2 where t2.id=t1.pid)parentName from sys_dept t1 - where t1.id = #{value} + where t1.id = #{value} AND t1.valid = 1 \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysDictDataDao.xml b/ym-admin/src/main/resources/mapper/SysDictDataDao.xml index fa2f89f..8c88067 100644 --- a/ym-admin/src/main/resources/mapper/SysDictDataDao.xml +++ b/ym-admin/src/main/resources/mapper/SysDictDataDao.xml @@ -4,7 +4,7 @@ \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysDictTypeDao.xml b/ym-admin/src/main/resources/mapper/SysDictTypeDao.xml index 0698e4e..e2863a1 100644 --- a/ym-admin/src/main/resources/mapper/SysDictTypeDao.xml +++ b/ym-admin/src/main/resources/mapper/SysDictTypeDao.xml @@ -4,7 +4,7 @@ \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysMenuDao.xml b/ym-admin/src/main/resources/mapper/SysMenuDao.xml index 078d5a4..a831e30 100644 --- a/ym-admin/src/main/resources/mapper/SysMenuDao.xml +++ b/ym-admin/src/main/resources/mapper/SysMenuDao.xml @@ -5,7 +5,7 @@ select t3.permissions from sys_role_user t1 left join sys_role_menu t2 on t1.role_id = t2.role_id - left join sys_menu t3 on t2.menu_id = t3.id + left join sys_menu t3 on t2.menu_id = t3.id where t1.user_id = #{userId} AND t1.valid = 1 order by t3.sort asc @@ -43,5 +43,5 @@ - + \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysParamsDao.xml b/ym-admin/src/main/resources/mapper/SysParamsDao.xml index 3ada3b6..3bbf120 100644 --- a/ym-admin/src/main/resources/mapper/SysParamsDao.xml +++ b/ym-admin/src/main/resources/mapper/SysParamsDao.xml @@ -5,7 +5,7 @@ @@ -14,10 +14,11 @@ #{id} + AND valid = 1 - update sys_params set param_value = #{paramValue} where param_code = #{paramCode} + update sys_params set param_value = #{paramValue} where param_code = #{paramCode} AND valid = 1 \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysRoleDataScopeDao.xml b/ym-admin/src/main/resources/mapper/SysRoleDataScopeDao.xml index e01c48a..60c96d4 100644 --- a/ym-admin/src/main/resources/mapper/SysRoleDataScopeDao.xml +++ b/ym-admin/src/main/resources/mapper/SysRoleDataScopeDao.xml @@ -4,12 +4,13 @@ @@ -17,6 +18,7 @@ #{roleId} + AND valid = 1 \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysRoleMenuDao.xml b/ym-admin/src/main/resources/mapper/SysRoleMenuDao.xml index aa4261a..8ceb0f2 100644 --- a/ym-admin/src/main/resources/mapper/SysRoleMenuDao.xml +++ b/ym-admin/src/main/resources/mapper/SysRoleMenuDao.xml @@ -4,7 +4,7 @@ @@ -12,9 +12,10 @@ #{roleId} + AND valid = 1 - delete from sys_role_menu where menu_id = #{value} + delete from sys_role_menu where menu_id = #{value} AND valid = 1 \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysRoleUserDao.xml b/ym-admin/src/main/resources/mapper/SysRoleUserDao.xml index 1ece0b5..0380ae0 100644 --- a/ym-admin/src/main/resources/mapper/SysRoleUserDao.xml +++ b/ym-admin/src/main/resources/mapper/SysRoleUserDao.xml @@ -8,6 +8,7 @@ #{roleId} + AND valid = 1 @@ -15,10 +16,11 @@ #{userId} + AND valid = 1 \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysUserDao.xml b/ym-admin/src/main/resources/mapper/SysUserDao.xml index c305412..399968f 100644 --- a/ym-admin/src/main/resources/mapper/SysUserDao.xml +++ b/ym-admin/src/main/resources/mapper/SysUserDao.xml @@ -5,7 +5,7 @@ select t1.*, (select t2.name from sys_dept t2 where t2.id=t1.dept_id) deptName from sys_user t1 - where t1.id = #{value} + where t1.id = #{value} AND t1.valid = 1 - update sys_user set password = #{newPassword} where id = #{id} + update sys_user set password = #{newPassword} where id = #{id} AND valid = 1 \ No newline at end of file