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
1
Merge Requests
1
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
haoban3.0
haoban-manage3.0
Commits
8d2fe7df
Commit
8d2fe7df
authored
Jun 09, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
本地缓存
parent
9724d050
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
DealSyncOperationApiServiceImpl.java
...ice/service/out/impl/DealSyncOperationApiServiceImpl.java
+1
-1
DepartmentApiServiceImpl.java
...ge/service/service/out/impl/DepartmentApiServiceImpl.java
+0
-1
DepartmentContoller.java
...gic/haoban/manage/web/controller/DepartmentContoller.java
+2
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/DealSyncOperationApiServiceImpl.java
View file @
8d2fe7df
...
...
@@ -572,7 +572,7 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
departmentService
.
cleanDepartment
(
wxEnterpriseId
,
groupIdList
);
}
RedisUtil
.
delCache
(
"department-list-cache-"
+
wxEnterpriseId
);
RedisUtil
.
del
Local
Cache
(
"department-list-cache-"
+
wxEnterpriseId
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/DepartmentApiServiceImpl.java
View file @
8d2fe7df
...
...
@@ -819,7 +819,6 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
}
@Override
@RedisCache
(
value
=
"department-list-cache-${wxEnterpriseId}"
)
public
List
<
DepartmentShortDTO
>
listAllDepartment
(
String
wxEnterpriseId
)
{
List
<
DepartmentShortDTO
>
list
=
departmentService
.
listAllDepartment
(
wxEnterpriseId
);
return
list
;
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/DepartmentContoller.java
View file @
8d2fe7df
...
...
@@ -858,10 +858,10 @@ public class DepartmentContoller extends WebBaseController{
if
(
StringUtils
.
isBlank
(
wxEnterpriseId
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_6
);
}
Object
cache
=
RedisUtil
.
getCache
(
"department-list-cache-"
+
wxEnterpriseId
);
Object
cache
=
RedisUtil
.
get
Local
Cache
(
"department-list-cache-"
+
wxEnterpriseId
);
if
(
null
==
cache
)
{
List
<
DepartmentShortDTO
>
list
=
departmentApiService
.
listAllDepartment
(
wxEnterpriseId
);
RedisUtil
.
set
Cache
(
"department-list-cache-"
+
wxEnterpriseId
,
list
);
RedisUtil
.
set
LocalCache
(
"department-list-cache-"
+
wxEnterpriseId
,
list
,-
1L
);
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