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
5bee37ab
Commit
5bee37ab
authored
Aug 18, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通讯录
parent
ad724076
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
DealSyncOperationApiServiceImpl.java
...ice/service/out/impl/DealSyncOperationApiServiceImpl.java
+5
-4
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/DealSyncOperationApiServiceImpl.java
View file @
5bee37ab
...
...
@@ -213,7 +213,7 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
RedisUtil
.
lock
(
key
,
10L
);
String
taskLock
=
getTaskLock
(
wxEnterpriseId
);
if
(
StringUtils
.
isNotBlank
(
taskLock
))
{
logger
.
info
(
"
【同步锁】taskLock={},key={}"
,
taskLock
,
key
);
logger
.
info
(
"
在处理中,返回"
);
RedisUtil
.
unlock
(
key
);
return
null
;
}
...
...
@@ -393,6 +393,7 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
@Override
public
String
getTaskLock
(
String
wxEnterpriseId
)
{
String
key
=
LOCK_KEY
+
wxEnterpriseId
;
logger
.
info
(
"缓存key={}"
,
key
);
return
(
String
)
RedisUtil
.
getCache
(
key
);
}
...
...
@@ -870,7 +871,7 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
public
void
taskSyncStaffTimer
(
String
params
)
{
try
{
RSet
<
String
>
set
=
RedisUtil
.
getRedisClient
().
getSet
(
PreDealServiceImpl
.
HAOBAN_TASK_DEPART_SET_CACHE
);
logger
.
info
(
"通讯录同步定时开始s
taff
={},{}"
,
set
.
size
(),
set
);
logger
.
info
(
"通讯录同步定时开始s
ize
={},{}"
,
set
.
size
(),
set
);
Iterator
<
String
>
it
=
set
.
iterator
()
;
while
(
it
.
hasNext
())
{
String
v
=
it
.
next
()
;
...
...
@@ -891,8 +892,8 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
if
(
task
.
getStatusFlag
()
!=
4
)
{
this
.
syncTaskService
.
updateTaskStatus
(
taskId
,
4
)
;
}
if
(
task
.
getCreateTime
().
getTime
()+
1000
*
60
*
60
*
12
<
System
.
currentTimeMillis
())
{
logger
.
info
(
"超过
一天
taskId={},{}"
,
taskId
);
if
(
task
.
getCreateTime
().
getTime
()+
1000
*
60
*
60
*
3
<
System
.
currentTimeMillis
())
{
logger
.
info
(
"超过
3小时
taskId={},{}"
,
taskId
);
it
.
remove
();
continue
;
}
...
...
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