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
cde6c09e
Commit
cde6c09e
authored
Sep 29, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
e9e0d550
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
19 deletions
+20
-19
StoreMessageHandler.java
...ava/com/gic/message/service/impl/StoreMessageHandler.java
+20
-19
No files found.
src/main/java/com/gic/message/service/impl/StoreMessageHandler.java
View file @
cde6c09e
...
...
@@ -55,25 +55,26 @@ public class StoreMessageHandler implements MessageHandler {
if
(
CollectionUtils
.
isNotEmpty
(
resourceResponse
.
getResult
())){
for
(
UnionEnterpriseResourceDTO
dto
:
resourceResponse
.
getResult
()){
ServiceResponse
<
StoreWidgetDTO
>
storeWidget
=
this
.
storeWidgetApiService
.
getStoreWidget
(
dto
.
getResource
().
intValue
());
if
(
storeWidget
.
isSuccess
()){
StoreWidgetDTO
storeWidgetDTO
=
storeWidget
.
getResult
();
if
(
storeWidgetDTO
!=
null
){
if
(
AuthModeEnum
.
YES
.
getCode
()
==
storeWidgetDTO
.
getAuthMode
()){
StoreSearchDTO
storeSearchDTO
=
new
StoreSearchDTO
();
storeSearchDTO
.
setStoreIds
(
String
.
valueOf
(
storeId
));
storeSearchDTO
.
setSearchJson
(
storeWidgetDTO
.
getSearchParam
());
storeSearchDTO
.
setEnterpriseId
(
enterpriseId
);
ServiceResponse
<
Page
<
StoreDTO
>>
response
=
this
.
storeApiService
.
listStore
(
storeSearchDTO
,
1
,
1
);
if
(
response
.
isSuccess
()){
if
(
CollectionUtils
.
isNotEmpty
(
response
.
getResult
().
getResult
())){
StoreDTO
storeDTO
=
new
StoreDTO
();
storeDTO
.
setStoreInfoId
(
storeInfoId
);
storeDTO
.
setEnterpriseId
(
enterpriseId
);
storeDTO
.
setFromEnterpriseId
(
dto
.
getUnionEnterpriseId
());
this
.
storeAuthorizationApiService
.
saveStore
(
storeDTO
);
//this.storeIndexRefreshHandler.refreshStoreIndex(dto.getUnionEnterpriseId(), storeId);
}
}
if
(!
storeWidget
.
isSuccess
()){
continue
;
}
StoreWidgetDTO
storeWidgetDTO
=
storeWidget
.
getResult
();
if
(
storeWidgetDTO
!=
null
){
if
(
AuthModeEnum
.
YES
.
getCode
()
==
storeWidgetDTO
.
getAuthMode
()){
StoreSearchDTO
storeSearchDTO
=
new
StoreSearchDTO
();
storeSearchDTO
.
setStoreIds
(
String
.
valueOf
(
storeId
));
storeSearchDTO
.
setSearchJson
(
storeWidgetDTO
.
getSearchParam
());
storeSearchDTO
.
setEnterpriseId
(
enterpriseId
);
ServiceResponse
<
Page
<
StoreDTO
>>
response
=
this
.
storeApiService
.
listStore
(
storeSearchDTO
,
1
,
1
);
if
(!
response
.
isSuccess
()){
continue
;
}
if
(
CollectionUtils
.
isNotEmpty
(
response
.
getResult
().
getResult
())){
StoreDTO
storeDTO
=
new
StoreDTO
();
storeDTO
.
setStoreInfoId
(
storeInfoId
);
storeDTO
.
setEnterpriseId
(
enterpriseId
);
storeDTO
.
setFromEnterpriseId
(
dto
.
getUnionEnterpriseId
());
this
.
storeAuthorizationApiService
.
saveStore
(
storeDTO
);
}
}
}
...
...
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