Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
e0cd5381
Commit
e0cd5381
authored
Aug 03, 2022
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据逻辑删除不进行唯一验证
parent
aee5d417
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
...system/src/main/resources/mapper/system/SysDeptMapper.xml
+1
-1
ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml
...system/src/main/resources/mapper/system/SysRoleMapper.xml
+3
-3
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
...system/src/main/resources/mapper/system/SysUserMapper.xml
+5
-5
No files found.
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
View file @
e0cd5381
...
...
@@ -82,7 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"checkDeptNameUnique"
resultMap=
"SysDeptResult"
>
<include
refid=
"selectDeptVo"
/>
where dept_name=#{deptName} and parent_id = #{parentId} limit 1
where dept_name=#{deptName} and parent_id = #{parentId}
and del_flag = '0'
limit 1
</select>
<insert
id=
"insertDept"
parameterType=
"SysDept"
>
...
...
ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml
View file @
e0cd5381
...
...
@@ -85,12 +85,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"checkRoleNameUnique"
parameterType=
"String"
resultMap=
"SysRoleResult"
>
<include
refid=
"selectRoleVo"
/>
where r.role_name=#{roleName} limit 1
where r.role_name=#{roleName}
and r.del_flag = '0'
limit 1
</select>
<select
id=
"checkRoleKeyUnique"
parameterType=
"String"
resultMap=
"SysRoleResult"
>
<include
refid=
"selectRoleVo"
/>
where r.role_key=#{roleKey} limit 1
where r.role_key=#{roleKey}
and r.del_flag = '0'
limit 1
</select>
<insert
id=
"insertRole"
parameterType=
"SysRole"
useGeneratedKeys=
"true"
keyProperty=
"roleId"
>
...
...
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
View file @
e0cd5381
...
...
@@ -122,7 +122,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"selectUserByUserName"
parameterType=
"String"
resultMap=
"SysUserResult"
>
<include
refid=
"selectUserVo"
/>
where u.user_name = #{userName}
where u.user_name = #{userName}
and u.del_flag = '0'
</select>
<select
id=
"selectUserById"
parameterType=
"Long"
resultMap=
"SysUserResult"
>
...
...
@@ -131,15 +131,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select
id=
"checkUserNameUnique"
parameterType=
"String"
resultType=
"int"
>
select count(1) from sys_user where user_name = #{userName} limit 1
select count(1) from sys_user where user_name = #{userName}
and del_flag = '0'
limit 1
</select>
<select
id=
"checkPhoneUnique"
parameterType=
"String"
resultMap=
"SysUserResult"
>
select user_id, phonenumber from sys_user where phonenumber = #{phonenumber} limit 1
select user_id, phonenumber from sys_user where phonenumber = #{phonenumber}
and del_flag = '0'
limit 1
</select>
<select
id=
"checkEmailUnique"
parameterType=
"String"
resultMap=
"SysUserResult"
>
select user_id, email from sys_user where email = #{email} limit 1
select user_id, email from sys_user where email = #{email}
and del_flag = '0'
limit 1
</select>
<insert
id=
"insertUser"
parameterType=
"SysUser"
useGeneratedKeys=
"true"
keyProperty=
"userId"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment