Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyang
sts网站
Commits
40a72c2b
Commit
40a72c2b
authored
Apr 08, 2021
by
若依
Browse files
Options
Browse Files
Download
Plain Diff
!199 规范命名、用户角色单个逻辑删除、去除多余代码
Merge pull request !199 from fuzui/some_problems
parents
30f330f4
9f6bc13e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
9 deletions
+5
-9
SameUrlDataInterceptor.java
...yi/framework/interceptor/impl/SameUrlDataInterceptor.java
+3
-3
SysRoleMapper.xml
...system/src/main/resources/mapper/system/SysRoleMapper.xml
+1
-5
SysUserMapper.xml
...system/src/main/resources/mapper/system/SysUserMapper.xml
+1
-1
No files found.
ruoyi-framework/src/main/java/com/ruoyi/framework/interceptor/impl/SameUrlDataInterceptor.java
View file @
40a72c2b
...
...
@@ -78,9 +78,9 @@ public class SameUrlDataInterceptor extends RepeatSubmitInterceptor
}
// 唯一标识(指定key + 消息头)
String
cache
_repeat_k
ey
=
Constants
.
REPEAT_SUBMIT_KEY
+
submitKey
;
String
cache
RepeatK
ey
=
Constants
.
REPEAT_SUBMIT_KEY
+
submitKey
;
Object
sessionObj
=
redisCache
.
getCacheObject
(
cache
_repeat_k
ey
);
Object
sessionObj
=
redisCache
.
getCacheObject
(
cache
RepeatK
ey
);
if
(
sessionObj
!=
null
)
{
Map
<
String
,
Object
>
sessionMap
=
(
Map
<
String
,
Object
>)
sessionObj
;
...
...
@@ -95,7 +95,7 @@ public class SameUrlDataInterceptor extends RepeatSubmitInterceptor
}
Map
<
String
,
Object
>
cacheMap
=
new
HashMap
<
String
,
Object
>();
cacheMap
.
put
(
url
,
nowDataMap
);
redisCache
.
setCacheObject
(
cache
_repeat_k
ey
,
cacheMap
,
intervalTime
,
TimeUnit
.
SECONDS
);
redisCache
.
setCacheObject
(
cache
RepeatK
ey
,
cacheMap
,
intervalTime
,
TimeUnit
.
SECONDS
);
return
false
;
}
...
...
ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml
View file @
40a72c2b
...
...
@@ -135,12 +135,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where role_id = #{roleId}
</update>
<update
id=
"updateRoleStatus"
parameterType=
"SysRole"
>
update sys_user set status = #{status} where user_id = #{userId}
</update>
<delete
id=
"deleteRoleById"
parameterType=
"Long"
>
delete from sys_role
where role_id = #{roleId}
update sys_role set del_flag = '2'
where role_id = #{roleId}
</delete>
<delete
id=
"deleteRoleByIds"
parameterType=
"Long"
>
...
...
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
View file @
40a72c2b
...
...
@@ -169,7 +169,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<delete
id=
"deleteUserById"
parameterType=
"Long"
>
delete from sys_user
where user_id = #{userId}
update sys_user set del_flag = '2'
where user_id = #{userId}
</delete>
<delete
id=
"deleteUserByIds"
parameterType=
"Long"
>
...
...
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