Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QianQiXiang
haoban-manage3.0
Commits
abf80708
Commit
abf80708
authored
Jun 05, 2019
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://115.159.76.241/haoban3.0/haoban-manage3.0.git
into developer
parents
c81d9316
c517a78f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
DepartmentContoller.java
...gic/haoban/manage/web/controller/DepartmentContoller.java
+9
-2
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/DepartmentContoller.java
View file @
abf80708
...
@@ -6,6 +6,7 @@ import java.util.HashSet;
...
@@ -6,6 +6,7 @@ import java.util.HashSet;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Set
;
import
java.util.Set
;
import
java.util.concurrent.TimeUnit
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
com.gic.haoban.manage.api.dto.DepartmentShortDTO
;
import
com.gic.haoban.manage.api.dto.DepartmentShortDTO
;
...
@@ -860,8 +861,14 @@ public class DepartmentContoller extends WebBaseController{
...
@@ -860,8 +861,14 @@ public class DepartmentContoller extends WebBaseController{
if
(
StringUtils
.
isBlank
(
wxEnterpriseId
))
{
if
(
StringUtils
.
isBlank
(
wxEnterpriseId
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_6
);
return
resultResponse
(
HaoBanErrCode
.
ERR_6
);
}
}
List
<
DepartmentShortDTO
>
list
=
departmentApiService
.
listAllDepartment
(
wxEnterpriseId
);
Object
cache
=
RedisUtil
.
getCache
(
"department-list-cache-"
+
wxEnterpriseId
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
list
);
if
(
null
==
cache
)
{
List
<
DepartmentShortDTO
>
list
=
departmentApiService
.
listAllDepartment
(
wxEnterpriseId
);
RedisUtil
.
setCache
(
"department-list-cache-"
+
wxEnterpriseId
,
list
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
list
);
}
else
{
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
cache
);
}
}
}
}
}
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