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
8bbf3300
Commit
8bbf3300
authored
Mar 09, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:空指针判断
parent
74c39ba4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
KafkaMessageServiceImpl.java
...c/haoban/manage/service/task/KafkaMessageServiceImpl.java
+5
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/task/KafkaMessageServiceImpl.java
View file @
8bbf3300
...
@@ -221,7 +221,10 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
...
@@ -221,7 +221,10 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
* @param syncPojo
* @param syncPojo
*/
*/
private
void
dealStore
(
StoreSyncPojo
syncPojo
)
{
private
void
dealStore
(
StoreSyncPojo
syncPojo
)
{
if
(
syncPojo
==
null
)
{
logger
.
error
(
"门店处理为空"
);
return
;
}
if
(
syncPojo
.
getRecordType
()
==
GicRecordType
.
UPDATE
.
value
()
if
(
syncPojo
.
getRecordType
()
==
GicRecordType
.
UPDATE
.
value
()
&&
(!
syncPojo
.
getStoreName
().
equals
(
syncPojo
.
getOldStoreName
())))
{
&&
(!
syncPojo
.
getStoreName
().
equals
(
syncPojo
.
getOldStoreName
())))
{
logger
.
info
(
"门店名称变更:{}"
,
JSONObject
.
toJSONString
(
syncPojo
));
logger
.
info
(
"门店名称变更:{}"
,
JSONObject
.
toJSONString
(
syncPojo
));
...
@@ -262,7 +265,7 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
...
@@ -262,7 +265,7 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
*/
*/
private
void
dealStoreGroup
(
GroupSyncPojo
syncPojo
)
{
private
void
dealStoreGroup
(
GroupSyncPojo
syncPojo
)
{
//删除 同步绑定门店
//删除 同步绑定门店
if
(
syncPojo
.
getOldStatus
()
==
1
&&
syncPojo
.
getStatus
()
==
0
)
{
if
(
syncPojo
!=
null
&&
syncPojo
.
getOldStatus
()
==
1
&&
syncPojo
.
getStatus
()
==
0
)
{
logger
.
info
(
"门店分组变更,同步绑定门店:{}"
,
JSONObject
.
toJSONString
(
syncPojo
));
logger
.
info
(
"门店分组变更,同步绑定门店:{}"
,
JSONObject
.
toJSONString
(
syncPojo
));
this
.
bindStoreToMq
(
syncPojo
.
getEnterpriseId
());
this
.
bindStoreToMq
(
syncPojo
.
getEnterpriseId
());
}
}
...
...
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