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
1
Merge Requests
1
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
89551f24
Commit
89551f24
authored
Aug 05, 2022
by
songyinghui
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
6a891586
eff9f431
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
KafkaMessageServiceImpl.java
...c/haoban/manage/service/task/KafkaMessageServiceImpl.java
+6
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/task/KafkaMessageServiceImpl.java
View file @
89551f24
...
...
@@ -74,7 +74,7 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
return
;
}
BinlogBasePojo
pojo
=
binlogChange
(
record
.
value
());
logger
.
info
(
"binlog数据:{}"
,
JSONObject
.
toJSONString
(
pojo
));
logger
.
info
(
"binlog数据
接收
:{}"
,
JSONObject
.
toJSONString
(
pojo
));
if
(
pojo
==
null
)
{
logger
.
error
(
"binlog数据为空"
);
return
;
...
...
@@ -87,6 +87,9 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
//门店
dealStore
((
StoreSyncPojo
)
pojo
);
}
else
if
(
record
.
value
().
getTableName
().
equals
(
CLERK
))
{
logger
.
info
(
"导购binlog无需监听"
);
}
}
private
void
dealClerk
(
ClerkSyncPojo
syncPojo
)
{
...
...
@@ -204,6 +207,7 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
logger
.
error
(
"门店处理为空"
);
return
;
}
logger
.
info
(
"门店binlog监听:{}"
,
JSONObject
.
toJSONString
(
syncPojo
));
if
(
syncPojo
.
getRecordType
()
==
GicRecordType
.
UPDATE
.
value
()
&&
(!
syncPojo
.
getStoreName
().
equals
(
syncPojo
.
getOldStoreName
())))
{
logger
.
info
(
"门店名称变更:{}"
,
JSONObject
.
toJSONString
(
syncPojo
));
...
...
@@ -244,6 +248,7 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
* @param syncPojo
*/
private
void
dealStoreGroup
(
GroupSyncPojo
syncPojo
)
{
logger
.
info
(
"门店分组变更binlog监听:{}"
,
JSONObject
.
toJSONString
(
syncPojo
));
//删除 同步绑定门店
if
(
syncPojo
!=
null
&&
syncPojo
.
getOldStatus
()
==
1
&&
syncPojo
.
getStatus
()
==
0
)
{
logger
.
info
(
"门店分组变更,同步绑定门店:{}"
,
JSONObject
.
toJSONString
(
syncPojo
));
...
...
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