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
d03afbac
Commit
d03afbac
authored
Aug 17, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试
parent
cfd6dd85
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
DealSyncOperationApiServiceImpl.java
...ice/service/out/impl/DealSyncOperationApiServiceImpl.java
+1
-0
FriendSyncNewOperation.java
...an/manage/service/task/friend/FriendSyncNewOperation.java
+2
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/DealSyncOperationApiServiceImpl.java
View file @
d03afbac
...
@@ -645,6 +645,7 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
...
@@ -645,6 +645,7 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
Object
cache
=
RedisUtil
.
getCache
(
staffLockKey
);
Object
cache
=
RedisUtil
.
getCache
(
staffLockKey
);
if
(
null
!=
cache
)
{
if
(
null
!=
cache
)
{
RedisUtil
.
unlock
(
lockKey
);
RedisUtil
.
unlock
(
lockKey
);
logger
.
info
(
"限制此操作,lockKey={}"
,
staffLockKey
);
return
null
;
return
null
;
}
}
TabHaobanSyncTask
tabHaobanSyncTask
=
new
TabHaobanSyncTask
();
TabHaobanSyncTask
tabHaobanSyncTask
=
new
TabHaobanSyncTask
();
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/task/friend/FriendSyncNewOperation.java
View file @
d03afbac
...
@@ -101,9 +101,8 @@ public class FriendSyncNewOperation implements BaseSyncOperation {
...
@@ -101,9 +101,8 @@ public class FriendSyncNewOperation implements BaseSyncOperation {
return
;
return
;
}
}
//relationkey
//relationkey
logger
.
info
(
"生成relationKey:{},{},{}"
,
staffId
,
externalUserDTO
.
getName
(),
externalUserDTO
.
getAddCreateTime
());
relationKey
=
SecureUtil
.
md5
(
staffId
+
"_"
+
externalUserDTO
.
getName
()
+
"_"
+
externalUserDTO
.
getAddCreateTime
());
relationKey
=
SecureUtil
.
md5
(
staffId
+
"_"
+
externalUserDTO
.
getName
()
+
"_"
+
externalUserDTO
.
getAddCreateTime
());
logger
.
info
(
"
relationKey:{},{}"
,
relationKey
,
externalUserDTO
.
getExternalUserId
()
);
logger
.
info
(
"
第三方生成relationKey:{},{},{} 客户={}, 结果={}"
,
staffId
,
externalUserDTO
.
getName
(),
externalUserDTO
.
getAddCreateTime
()
,
externalUserDTO
.
getExternalUserId
()
,
relationKey
);
// 根据关联键relationkey查看自建应用 是否有数据
// 根据关联键relationkey查看自建应用 是否有数据
TabHaobanPreDealLog
selfPre
=
preDealService
.
getByRelationKey
(
taskId
,
PreDealTypeEnum
.
self_friend
.
getVal
(),
relationKey
);
TabHaobanPreDealLog
selfPre
=
preDealService
.
getByRelationKey
(
taskId
,
PreDealTypeEnum
.
self_friend
.
getVal
(),
relationKey
);
if
(
null
==
selfPre
)
{
if
(
null
==
selfPre
)
{
...
@@ -133,6 +132,7 @@ public class FriendSyncNewOperation implements BaseSyncOperation {
...
@@ -133,6 +132,7 @@ public class FriendSyncNewOperation implements BaseSyncOperation {
dealFlag
=
tryAgainToMq
(
dataPre
);
dealFlag
=
tryAgainToMq
(
dataPre
);
reason
=
"接口重试超出限制"
;
reason
=
"接口重试超出限制"
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
logger
.
info
(
"同步失败:{},{}"
,
JSONObject
.
toJSONString
(
dataPre
),
e
);
logger
.
info
(
"同步失败:{},{}"
,
JSONObject
.
toJSONString
(
dataPre
),
e
);
reason
=
"第三方好友处理异常"
;
reason
=
"第三方好友处理异常"
;
dealFlag
=
false
;
dealFlag
=
false
;
...
...
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