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
haoban3.0
haoban-manage3.0
Commits
95bc90ff
Commit
95bc90ff
authored
Sep 20, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步通讯录
parent
3cdbf9f8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
DealSyncOperationApiServiceImpl.java
...ice/service/out/impl/DealSyncOperationApiServiceImpl.java
+1
-0
DepartmentContoller.java
...gic/haoban/manage/web/controller/DepartmentContoller.java
+1
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/DealSyncOperationApiServiceImpl.java
View file @
95bc90ff
...
@@ -934,6 +934,7 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
...
@@ -934,6 +934,7 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
TabHaobanSyncTask
syncTask
=
syncTaskService
.
getSyncTask
(
taskId
);
TabHaobanSyncTask
syncTask
=
syncTaskService
.
getSyncTask
(
taskId
);
String
wxEnterpriseId
=
syncTask
.
getWxEnterpriseId
();
String
wxEnterpriseId
=
syncTask
.
getWxEnterpriseId
();
this
.
unlockTask
(
wxEnterpriseId
)
;
this
.
unlockTask
(
wxEnterpriseId
)
;
this
.
cleanDiffrence
(
wxEnterpriseId
,
taskId
);
logger
.
info
(
"同步通讯录完成"
);
logger
.
info
(
"同步通讯录完成"
);
RedisUtil
.
unlock
(
key
);
RedisUtil
.
unlock
(
key
);
}
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/DepartmentContoller.java
View file @
95bc90ff
...
@@ -336,7 +336,7 @@ public class DepartmentContoller extends WebBaseController {
...
@@ -336,7 +336,7 @@ public class DepartmentContoller extends WebBaseController {
Object
cache
=
RedisUtil
.
getLocalCache
(
"department-list-cache-"
+
wxEnterpriseId
);
Object
cache
=
RedisUtil
.
getLocalCache
(
"department-list-cache-"
+
wxEnterpriseId
);
if
(
null
==
cache
)
{
if
(
null
==
cache
)
{
List
<
DepartmentShortDTO
>
list
=
departmentApiService
.
listAllDepartment
(
wxEnterpriseId
);
List
<
DepartmentShortDTO
>
list
=
departmentApiService
.
listAllDepartment
(
wxEnterpriseId
);
RedisUtil
.
setLocalCache
(
"department-list-cache-"
+
wxEnterpriseId
,
list
,
-
1
L
);
RedisUtil
.
setLocalCache
(
"department-list-cache-"
+
wxEnterpriseId
,
list
,
60
*
60
*
24
L
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
list
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
list
);
}
else
{
}
else
{
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
cache
);
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