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
3822dd31
Commit
3822dd31
authored
Mar 24, 2025
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步通讯录并发
parent
3907dd3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
DealSyncOperationApiServiceImpl.java
...ice/service/out/impl/DealSyncOperationApiServiceImpl.java
+7
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/DealSyncOperationApiServiceImpl.java
View file @
3822dd31
...
...
@@ -998,12 +998,19 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
logger
.
info
(
"企微通讯录成员成功:{}"
,
taskId
);
String
key
=
"haoban_sync_clerk_task_"
+
taskId
;
RedisUtil
.
lock
(
key
,
3L
);
String
cacheId
=
"haoban_sync_clerk_task_cache_"
+
taskId
;
if
(
null
!=
RedisUtil
.
getCache
(
cacheId
))
{
logger
.
info
(
"进行中,未完成{}"
,
cacheId
);
return
false
;
}
RedisUtil
.
setCache
(
cacheId
,
1
,
15
*
60L
)
;
TabHaobanSyncTask
syncTask
=
syncTaskService
.
getSyncTask
(
taskId
);
String
wxEnterpriseId
=
syncTask
.
getWxEnterpriseId
();
this
.
unlockTask
(
wxEnterpriseId
)
;
this
.
cleanDiffrence
(
wxEnterpriseId
,
taskId
);
logger
.
info
(
"同步通讯录完成"
);
String
conectkey
=
"get_follow_user_list:"
+
wxEnterpriseId
;
RedisUtil
.
delCache
(
cacheId
)
;
RedisUtil
.
delCache
(
conectkey
)
;
RedisUtil
.
unlock
(
key
);
}
...
...
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