Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-message
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
base_platform_enterprise
gic-platform-message
Commits
a02c2eb3
Commit
a02c2eb3
authored
Jun 24, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店binlog调整
parent
6b5b5621
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
StoreInfoMessageHandler.java
...com/gic/message/service/impl/StoreInfoMessageHandler.java
+1
-1
StoreMessageHandler.java
...ava/com/gic/message/service/impl/StoreMessageHandler.java
+3
-2
No files found.
src/main/java/com/gic/message/service/impl/StoreInfoMessageHandler.java
View file @
a02c2eb3
...
@@ -62,7 +62,7 @@ public class StoreInfoMessageHandler implements MessageHandler {
...
@@ -62,7 +62,7 @@ public class StoreInfoMessageHandler implements MessageHandler {
List
<
StoreDTO
>
listStore
=
listStoreResponse
.
getResult
();
List
<
StoreDTO
>
listStore
=
listStoreResponse
.
getResult
();
for
(
StoreDTO
storeDTO
:
listStore
){
for
(
StoreDTO
storeDTO
:
listStore
){
if
(
storeDTO
.
getOwnType
()
==
StoreOwnTypeEnum
.
OWNER
.
getCode
()){
if
(
storeDTO
.
getOwnType
()
==
StoreOwnTypeEnum
.
OWNER
.
getCode
()){
if
(
Integer
.
valueOf
(
fieldMap
.
get
(
"
old_status"
).
getValue
())
==
1
&&
Integer
.
valueOf
(
fieldMap
.
get
(
"
new_status"
).
getValue
())
==
0
){
if
(
Integer
.
valueOf
(
fieldMap
.
get
(
"new_status"
).
getValue
())
==
0
){
this
.
storeApiService
.
deleteStoreFromEs
(
storeDTO
.
getEnterpriseId
(),
storeDTO
.
getStoreId
());
this
.
storeApiService
.
deleteStoreFromEs
(
storeDTO
.
getEnterpriseId
(),
storeDTO
.
getStoreId
());
}
else
{
}
else
{
this
.
storeIndexRefreshHandler
.
refreshStoreIndex
(
storeDTO
.
getEnterpriseId
(),
storeDTO
.
getStoreId
());
this
.
storeIndexRefreshHandler
.
refreshStoreIndex
(
storeDTO
.
getEnterpriseId
(),
storeDTO
.
getStoreId
());
...
...
src/main/java/com/gic/message/service/impl/StoreMessageHandler.java
View file @
a02c2eb3
...
@@ -87,7 +87,8 @@ public class StoreMessageHandler implements MessageHandler {
...
@@ -87,7 +87,8 @@ public class StoreMessageHandler implements MessageHandler {
enterpriseId
=
Integer
.
valueOf
(
fieldMap
.
get
(
"new_enterprise_id"
).
getValue
());
enterpriseId
=
Integer
.
valueOf
(
fieldMap
.
get
(
"new_enterprise_id"
).
getValue
());
storeId
=
Integer
.
valueOf
(
fieldMap
.
get
(
"new_store_id"
).
getValue
());
storeId
=
Integer
.
valueOf
(
fieldMap
.
get
(
"new_store_id"
).
getValue
());
storeInfoId
=
Integer
.
valueOf
(
fieldMap
.
get
(
"new_store_info_id"
).
getValue
());
storeInfoId
=
Integer
.
valueOf
(
fieldMap
.
get
(
"new_store_info_id"
).
getValue
());
if
(
Integer
.
valueOf
(
fieldMap
.
get
(
OLD_STATUS
).
getValue
())
==
1
&&
Integer
.
valueOf
(
fieldMap
.
get
(
NEW_STATUS
).
getValue
())
==
0
)
{
//删除
if
(
Integer
.
valueOf
(
fieldMap
.
get
(
NEW_STATUS
).
getValue
())
==
0
)
{
//删除
this
.
storeApiService
.
deleteStoreFromEs
(
enterpriseId
,
storeId
);
this
.
storeApiService
.
deleteStoreFromEs
(
enterpriseId
,
storeId
);
}
else
{
}
else
{
this
.
storeIndexRefreshHandler
.
refreshStoreIndex
(
enterpriseId
,
storeId
);
this
.
storeIndexRefreshHandler
.
refreshStoreIndex
(
enterpriseId
,
storeId
);
...
@@ -131,7 +132,7 @@ public class StoreMessageHandler implements MessageHandler {
...
@@ -131,7 +132,7 @@ public class StoreMessageHandler implements MessageHandler {
storeSearchDTO
.
setEnterpriseId
(
enterpriseId
);
storeSearchDTO
.
setEnterpriseId
(
enterpriseId
);
Long
count
=
this
.
storeApiService
.
queryStoreCountFromEs
(
storeSearchDTO
).
getResult
();
Long
count
=
this
.
storeApiService
.
queryStoreCountFromEs
(
storeSearchDTO
).
getResult
();
boolean
ownExist
=
count
>
0
?
true
:
false
;
boolean
ownExist
=
count
>
0
?
true
:
false
;
Integer
unionEnterpriseId
=
1
;
Integer
unionEnterpriseId
=
dto
.
getUnionEnterpriseId
()
;
storeSearchDTO
.
setEnterpriseId
(
unionEnterpriseId
);
storeSearchDTO
.
setEnterpriseId
(
unionEnterpriseId
);
count
=
this
.
storeApiService
.
queryStoreCountFromEs
(
storeSearchDTO
).
getResult
();
count
=
this
.
storeApiService
.
queryStoreCountFromEs
(
storeSearchDTO
).
getResult
();
boolean
unionExist
=
count
>
0
?
true
:
false
;
boolean
unionExist
=
count
>
0
?
true
:
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