Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
c7308b50
Commit
c7308b50
authored
Oct 12, 2018
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
cd6bd15d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/main/java/cn/stylefeng/guns/config/SwaggerConfig.java
+1
-1
src/main/java/cn/stylefeng/guns/core/common/constant/factory/ConstantFactory.java
+4
-1
No files found.
src/main/java/cn/stylefeng/guns/config/SwaggerConfig.java
View file @
c7308b50
...
...
@@ -53,7 +53,7 @@ public class SwaggerConfig{
return
new
ApiInfoBuilder
()
.
title
(
"Guns Doc"
)
.
description
(
"Guns Api文档"
)
.
termsOfServiceUrl
(
"http
://git.oschina.net/naan1993
/guns"
)
.
termsOfServiceUrl
(
"http
s://gitee.com/stylefeng
/guns"
)
.
contact
(
"stylefeng"
)
.
version
(
"2.0"
)
.
build
();
...
...
src/main/java/cn/stylefeng/guns/core/common/constant/factory/ConstantFactory.java
View file @
c7308b50
...
...
@@ -94,6 +94,9 @@ public class ConstantFactory implements IConstantFactory {
@Override
@Cacheable
(
value
=
Cache
.
CONSTANT
,
key
=
"'"
+
CacheKey
.
ROLES_NAME
+
"'+#roleIds"
)
public
String
getRoleName
(
String
roleIds
)
{
if
(
ToolUtil
.
isEmpty
(
roleIds
))
{
return
""
;
}
Integer
[]
roles
=
Convert
.
toIntArray
(
roleIds
);
StringBuilder
sb
=
new
StringBuilder
();
for
(
int
role
:
roles
)
{
...
...
@@ -320,7 +323,7 @@ public class ConstantFactory implements IConstantFactory {
ArrayList
<
Integer
>
deptids
=
new
ArrayList
<>();
if
(
depts
!=
null
&&
depts
.
size
()
>
0
)
{
if
(
depts
!=
null
&&
depts
.
size
()
>
0
)
{
for
(
Dept
dept
:
depts
)
{
deptids
.
add
(
dept
.
getId
());
}
...
...
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