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
e6ec50f4
Commit
e6ec50f4
authored
Nov 26, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
2c14f122
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
10 deletions
+27
-10
TestService.java
src/main/java/com/gic/message/service/TestService.java
+17
-0
StoreCustomMessageHandler.java
...m/gic/message/service/impl/StoreCustomMessageHandler.java
+3
-3
StoreInfoMessageHandler.java
...com/gic/message/service/impl/StoreInfoMessageHandler.java
+7
-7
No files found.
src/main/java/com/gic/message/service/TestService.java
View file @
e6ec50f4
package
com
.
gic
.
message
.
service
;
/**
* test
* @Title: test
* @Description:
* @author taogs
* @param null
* @return
* @throws
*/
public
interface
TestService
{
/**
* test
* @Title: test
* @Description:
* @author taogs
* @return void
* @throws
*/
void
test
();
}
src/main/java/com/gic/message/service/impl/StoreCustomMessageHandler.java
View file @
e6ec50f4
...
...
@@ -83,9 +83,9 @@ public class StoreCustomMessageHandler implements MessageHandler {
}
}
this
.
dealStoreInfoChange
(
enterpriseId
,
storeInfoId
,
fieldMap
);
ServiceResponse
<
List
<
StoreDTO
>>
listStoreResponse
1
=
this
.
storeApiService
.
listStoreByStoreInfoId
(
storeInfoId
);
List
<
StoreDTO
>
listStore
1
=
listStoreResponse1
.
getResult
();
for
(
StoreDTO
storeDTO
:
listStore
1
){
ServiceResponse
<
List
<
StoreDTO
>>
listStoreResponse
One
=
this
.
storeApiService
.
listStoreByStoreInfoId
(
storeInfoId
);
List
<
StoreDTO
>
listStore
One
=
listStoreResponseOne
.
getResult
();
for
(
StoreDTO
storeDTO
:
listStore
One
){
this
.
storeIndexRefreshHandler
.
refreshStoreIndex
(
storeDTO
.
getEnterpriseId
(),
storeDTO
.
getStoreId
());
}
}
...
...
src/main/java/com/gic/message/service/impl/StoreInfoMessageHandler.java
View file @
e6ec50f4
...
...
@@ -70,9 +70,9 @@ public class StoreInfoMessageHandler implements MessageHandler {
}
}
this
.
dealStoreInfoChange
(
enterpriseId
,
storeInfoId
,
fieldMap
);
ServiceResponse
<
List
<
StoreDTO
>>
listStoreResponse
1
=
this
.
storeApiService
.
listStoreByStoreInfoId
(
storeInfoId
);
List
<
StoreDTO
>
listStore
1
=
listStoreResponse1
.
getResult
();
for
(
StoreDTO
storeDTO
:
listStore
1
){
ServiceResponse
<
List
<
StoreDTO
>>
listStoreResponse
One
=
this
.
storeApiService
.
listStoreByStoreInfoId
(
storeInfoId
);
List
<
StoreDTO
>
listStore
One
=
listStoreResponseOne
.
getResult
();
for
(
StoreDTO
storeDTO
:
listStore
One
){
this
.
storeIndexRefreshHandler
.
refreshStoreIndex
(
storeDTO
.
getEnterpriseId
(),
storeDTO
.
getStoreId
());
}
}
...
...
@@ -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
storeSearchDto
1
=
new
StoreSearchDTO
();
storeSearchDto
1
.
setRegionId
(
Integer
.
valueOf
(
fieldMap
.
get
(
"old_region_id"
).
getValue
()));
storeSearchDto
1
.
setSearchJson
(
storeWidgetDTO
.
getSearchParam
());
storeSearchDto
1
.
setEnterpriseId
(
enterpriseId
);
StoreSearchDTO
storeSearchDto
One
=
new
StoreSearchDTO
();
storeSearchDto
One
.
setRegionId
(
Integer
.
valueOf
(
fieldMap
.
get
(
"old_region_id"
).
getValue
()));
storeSearchDto
One
.
setSearchJson
(
storeWidgetDTO
.
getSearchParam
());
storeSearchDto
One
.
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
()));
...
...
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