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
5e1339ac
Commit
5e1339ac
authored
Sep 10, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
方法修改
parent
7bbf7782
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
StoreInfoMessageHandler.java
...com/gic/message/service/impl/StoreInfoMessageHandler.java
+4
-4
StoreMessageHandler.java
...ava/com/gic/message/service/impl/StoreMessageHandler.java
+2
-2
No files found.
src/main/java/com/gic/message/service/impl/StoreInfoMessageHandler.java
View file @
5e1339ac
...
...
@@ -116,10 +116,10 @@ public class StoreInfoMessageHandler implements MessageHandler {
this
.
storeAuthorizationApiService
.
cancelStore
(
storeInfoId
,
dto
.
getUnionEnterpriseId
());
}
if
(!
Integer
.
valueOf
(
fieldMap
.
get
(
"old_region_id"
).
getValue
()).
equals
(
Integer
.
valueOf
(
fieldMap
.
get
(
"new_region_id"
).
getValue
()))){
StoreSearchDTO
storeSearchD
TO
1
=
new
StoreSearchDTO
();
storeSearchD
TO
1
.
setRegionId
(
Integer
.
valueOf
(
fieldMap
.
get
(
"old_region_id"
).
getValue
()));
storeSearchD
TO
1
.
setSearchJson
(
storeWidgetDTO
.
getSearchParam
());
storeSearchD
TO
1
.
setEnterpriseId
(
enterpriseId
);
StoreSearchDTO
storeSearchD
to
1
=
new
StoreSearchDTO
();
storeSearchD
to
1
.
setRegionId
(
Integer
.
valueOf
(
fieldMap
.
get
(
"old_region_id"
).
getValue
()));
storeSearchD
to
1
.
setSearchJson
(
storeWidgetDTO
.
getSearchParam
());
storeSearchD
to
1
.
setEnterpriseId
(
enterpriseId
);
ServiceResponse
<
Page
<
StoreDTO
>>
response1
=
this
.
storeApiService
.
listStore
(
storeSearchDTO
,
1
,
1
);
if
(
CollectionUtils
.
isEmpty
(
response1
.
getResult
().
getResult
())){
this
.
storeRegionApiService
.
unAuthorizeRegion
(
dto
.
getUnionEnterpriseId
(),
Integer
.
valueOf
(
fieldMap
.
get
(
"old_region_id"
).
getValue
()));
...
...
src/main/java/com/gic/message/service/impl/StoreMessageHandler.java
View file @
5e1339ac
...
...
@@ -29,7 +29,7 @@ import java.util.Map;
* @ClassName: StoreMessageHandler
* @Description:
* @author zhiwj
* @date 2020-09-10 15:1
0
* @date 2020-09-10 15:1
2
*/
@Component
public
class
StoreMessageHandler
implements
MessageHandler
{
...
...
@@ -71,7 +71,7 @@ public class StoreMessageHandler implements MessageHandler {
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
)
{
//删除
this
.
storeApiService
.
deleteStoreFromEs
(
enterpriseId
,
storeId
);
}
else
if
(
Integer
.
valueOf
(
fieldMap
.
get
(
OLD_STATUS
).
getValue
())
==
1
&&
Integer
.
valueOf
(
fieldMap
.
get
(
NEW_STATUS
).
getValue
())
==
NEW_STATUS_VALUE
){
//下线
}
else
if
(
Integer
.
valueOf
(
fieldMap
.
get
(
OLD_STATUS
).
getValue
())
==
1
&&
Integer
.
valueOf
(
fieldMap
.
get
(
NEW_STATUS
).
getValue
())
.
equals
(
NEW_STATUS_VALUE
)
){
//下线
//todo 通知会员组(积分成本转移)
}
else
{
this
.
storeIndexRefreshHandler
.
refreshStoreIndex
(
enterpriseId
,
storeId
);
...
...
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