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
e6898236
Commit
e6898236
authored
Jun 30, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://115.159.76.241/haoban3.0/haoban-manage3.0.git
into developer
parents
5f852873
836154a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
KafkaMessageServiceImpl.java
...c/haoban/manage/service/task/KafkaMessageServiceImpl.java
+2
-5
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/task/KafkaMessageServiceImpl.java
View file @
e6898236
...
...
@@ -90,7 +90,6 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
StaffClerkRelationDTO
clerkRelationDTO
=
staffClerkRelationService
.
getByClerkId
(
syncPojo
.
getClerkId
());
if
(
clerkRelationDTO
!=
null
)
{
logger
.
info
(
"更新关联信息1:{}"
,
syncPojo
.
getClerkId
());
staffClerkRelationService
.
updateByClerkId
(
relationDTO
);
return
;
...
...
@@ -98,10 +97,8 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
StaffClerkRelationDTO
bindRelationDTO
=
staffClerkRelationService
.
getOneBindCodeNoStatus
(
syncPojo
.
getEnterpriseId
(),
syncPojo
.
getClerkCode
());
if
(
null
==
bindRelationDTO
)
{
logger
.
info
(
"没有关联导购,不需要操作:{}"
,
syncPojo
.
getClerkId
());
return
;
}
logger
.
info
(
"走新增逻辑:{}"
,
syncPojo
.
getClerkId
());
//走新增逻辑
moveOrAddClerk
(
syncPojo
,
bindRelationDTO
);
...
...
@@ -120,7 +117,7 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
relationDTO
.
setClerkId
(
syncPojo
.
getClerkId
());
relationDTO
.
setStoreId
(
syncPojo
.
getStoreId
());
ServiceResponse
response
=
staffClerkRelationApiService
.
bindStaffClerk
(
relationDTO
,
"-1"
,
ChannelCodeEnum
.
SYNC_BIND
.
getCode
());
logger
.
info
(
"绑定结果正常:{}
"
,
JSONObject
.
toJSONString
(
response
));
logger
.
info
(
"绑定结果正常:{}
,{}"
,
JSONObject
.
toJSONString
(
response
),
relationDTO
.
getClerkId
(
));
}
else
{
//删除状态 需要判断是否近段时间有操作删除 2分组内有更新 判断是转移操作
Date
timeDiff
=
DateUtils
.
addMinutes
(
new
Date
(),
-
2
);
if
(
relationDTO
.
getUpdateTime
().
after
(
timeDiff
)){
...
...
@@ -128,7 +125,7 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
relationDTO
.
setClerkId
(
syncPojo
.
getClerkId
());
relationDTO
.
setStoreId
(
syncPojo
.
getStoreId
());
ServiceResponse
response
=
staffClerkRelationApiService
.
bindStaffClerk
(
relationDTO
,
"-1"
,
ChannelCodeEnum
.
SYNC_BIND
.
getCode
());
logger
.
info
(
"绑定结果:{}
"
,
JSONObject
.
toJSONString
(
response
));
logger
.
info
(
"绑定结果:{}
,{}"
,
JSONObject
.
toJSONString
(
response
),
relationDTO
.
getClerkId
(
));
}
}
}
...
...
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