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
384150c1
Commit
384150c1
authored
Jun 10, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步绑定流程
parent
4237444c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
KafkaMessageServiceImpl.java
...c/haoban/manage/service/task/KafkaMessageServiceImpl.java
+4
-3
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/task/KafkaMessageServiceImpl.java
View file @
384150c1
...
@@ -66,21 +66,22 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
...
@@ -66,21 +66,22 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
relationDTO
.
setClerkCode
(
syncPojo
.
getClerkCode
());
relationDTO
.
setClerkCode
(
syncPojo
.
getClerkCode
());
//非正常状态 删除
//非正常状态 删除
if
(!
syncPojo
.
getStatus
().
equals
(
1
))
{
if
(!
syncPojo
.
getStatus
().
equals
(
1
))
{
logger
.
info
(
"删除操作:{}"
,
syncPojo
.
getClerkId
());
staffClerkRelationService
.
delBind
(
syncPojo
.
getClerkId
());
staffClerkRelationService
.
delBind
(
syncPojo
.
getClerkId
());
}
else
{
}
else
{
List
<
String
>
clerkIds
=
new
ArrayList
<>();
List
<
String
>
clerkIds
=
new
ArrayList
<>();
clerkIds
.
add
(
syncPojo
.
getClerkId
());
clerkIds
.
add
(
syncPojo
.
getClerkId
());
StaffClerkRelationDTO
bindRelationDTO
=
staffClerkRelationService
.
getOneBindCodeNoStatus
(
syncPojo
.
getEnterpriseId
(),
syncPojo
.
getClerkCode
());
StaffClerkRelationDTO
bindRelationDTO
=
staffClerkRelationService
.
getOneBindCodeNoStatus
(
syncPojo
.
getEnterpriseId
(),
syncPojo
.
getClerkCode
());
if
(
bindRelationDTO
==
null
)
{
if
(
bindRelationDTO
==
null
)
{
logger
.
info
(
"没有关联导购,不需要操作
"
);
logger
.
info
(
"没有关联导购,不需要操作
:{}"
,
syncPojo
.
getClerkId
()
);
return
;
return
;
}
}
if
(
bindRelationDTO
.
getStatusFlag
().
equals
(
StatusEnum
.
NORMAL
.
getValue
())
if
(
bindRelationDTO
.
getStatusFlag
().
equals
(
StatusEnum
.
NORMAL
.
getValue
())
&&
syncPojo
.
getOldStatus
().
equals
(
1
))
{
&&
syncPojo
.
getOldStatus
().
equals
(
1
))
{
logger
.
info
(
"更新关联信息
"
);
logger
.
info
(
"更新关联信息
:{}"
,
syncPojo
.
getClerkId
()
);
staffClerkRelationService
.
updateByClerkId
(
relationDTO
);
staffClerkRelationService
.
updateByClerkId
(
relationDTO
);
}
else
{
}
else
{
logger
.
info
(
"走新增逻辑
"
);
logger
.
info
(
"走新增逻辑
:{}"
,
syncPojo
.
getClerkId
()
);
//走新增逻辑
//走新增逻辑
moveOrAddClerk
(
syncPojo
,
bindRelationDTO
);
moveOrAddClerk
(
syncPojo
,
bindRelationDTO
);
}
}
...
...
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