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
50ac3636
Commit
50ac3636
authored
Sep 04, 2020
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
升级druid到最新版本v1.1.23
parent
f84b1574
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
9 deletions
+6
-9
pom.xml
pom.xml
+1
-1
DataScopeAspect.java
...ain/java/com/ruoyi/framework/aspectj/DataScopeAspect.java
+3
-6
SysDictTypeServiceImpl.java
...com/ruoyi/system/service/impl/SysDictTypeServiceImpl.java
+2
-2
No files found.
pom.xml
View file @
50ac3636
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<java.version>
1.8
</java.version>
<java.version>
1.8
</java.version>
<mybatis.boot.version>
1.3.2
</mybatis.boot.version>
<mybatis.boot.version>
1.3.2
</mybatis.boot.version>
<druid.version>
1.1.
14
</druid.version>
<druid.version>
1.1.
23
</druid.version>
<bitwalker.version>
1.19
</bitwalker.version>
<bitwalker.version>
1.19
</bitwalker.version>
<swagger.version>
2.9.2
</swagger.version>
<swagger.version>
2.9.2
</swagger.version>
<kaptcha.version>
2.3.2
</kaptcha.version>
<kaptcha.version>
2.3.2
</kaptcha.version>
...
...
ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/DataScopeAspect.java
View file @
50ac3636
...
@@ -79,14 +79,11 @@ public class DataScopeAspect
...
@@ -79,14 +79,11 @@ public class DataScopeAspect
}
}
// 获取当前的用户
// 获取当前的用户
LoginUser
loginUser
=
SpringUtils
.
getBean
(
TokenService
.
class
).
getLoginUser
(
ServletUtils
.
getRequest
());
LoginUser
loginUser
=
SpringUtils
.
getBean
(
TokenService
.
class
).
getLoginUser
(
ServletUtils
.
getRequest
());
if
(
loginUser
==
null
)
{
if
(
StringUtils
.
isNotNull
(
loginUser
))
return
;
}
SysUser
currentUser
=
loginUser
.
getUser
();
if
(
currentUser
!=
null
)
{
{
SysUser
currentUser
=
loginUser
.
getUser
();
// 如果是超级管理员,则不过滤数据
// 如果是超级管理员,则不过滤数据
if
(!
currentUser
.
isAdmin
())
if
(
StringUtils
.
isNotNull
(
currentUser
)
&&
!
currentUser
.
isAdmin
())
{
{
dataScopeFilter
(
joinPoint
,
currentUser
,
controllerDataScope
.
deptAlias
(),
dataScopeFilter
(
joinPoint
,
currentUser
,
controllerDataScope
.
deptAlias
(),
controllerDataScope
.
userAlias
());
controllerDataScope
.
userAlias
());
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.java
View file @
50ac3636
...
@@ -76,12 +76,12 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService
...
@@ -76,12 +76,12 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService
public
List
<
SysDictData
>
selectDictDataByType
(
String
dictType
)
public
List
<
SysDictData
>
selectDictDataByType
(
String
dictType
)
{
{
List
<
SysDictData
>
dictDatas
=
DictUtils
.
getDictCache
(
dictType
);
List
<
SysDictData
>
dictDatas
=
DictUtils
.
getDictCache
(
dictType
);
if
(
null
!=
dictDatas
&&!
dictDatas
.
isEmpty
(
))
if
(
StringUtils
.
isNotEmpty
(
dictDatas
))
{
{
return
dictDatas
;
return
dictDatas
;
}
}
dictDatas
=
dictDataMapper
.
selectDictDataByType
(
dictType
);
dictDatas
=
dictDataMapper
.
selectDictDataByType
(
dictType
);
if
(
null
!=
dictDatas
&&!
dictDatas
.
isEmpty
(
))
if
(
StringUtils
.
isNotEmpty
(
dictDatas
))
{
{
DictUtils
.
setDictCache
(
dictType
,
dictDatas
);
DictUtils
.
setDictCache
(
dictType
,
dictDatas
);
return
dictDatas
;
return
dictDatas
;
...
...
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