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
e0e8ae2d
Commit
e0e8ae2d
authored
Nov 26, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into 'master'
Developer See merge request
!4
parents
04e1c964
ff678a35
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
64 additions
and
13 deletions
+64
-13
TestService.java
src/main/java/com/gic/message/service/TestService.java
+22
-0
StoreCustomMessageHandler.java
...m/gic/message/service/impl/StoreCustomMessageHandler.java
+3
-3
StoreInfoMessageHandler.java
...com/gic/message/service/impl/StoreInfoMessageHandler.java
+9
-9
TestServiceImpl.java
...in/java/com/gic/message/service/impl/TestServiceImpl.java
+29
-0
dubbo-gic-platform-message.xml
src/main/resources/dubbo-gic-platform-message.xml
+1
-1
No files found.
src/main/java/com/gic/message/service/TestService.java
0 → 100644
View file @
e0e8ae2d
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 @
e0e8ae2d
...
...
@@ -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 @
e0e8ae2d
...
...
@@ -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,12 +116,12 @@ 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
);
ServiceResponse
<
Page
<
StoreDTO
>>
response
1
=
this
.
storeApiService
.
listStore
(
storeSearchDTO
,
1
,
1
);
if
(
CollectionUtils
.
isEmpty
(
response
1
.
getResult
().
getResult
())){
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
>>
response
One
=
this
.
storeApiService
.
listStore
(
storeSearchDTO
,
1
,
1
);
if
(
CollectionUtils
.
isEmpty
(
response
One
.
getResult
().
getResult
())){
this
.
storeRegionApiService
.
unAuthorizeRegion
(
dto
.
getUnionEnterpriseId
(),
Integer
.
valueOf
(
fieldMap
.
get
(
"old_region_id"
).
getValue
()));
}
}
...
...
src/main/java/com/gic/message/service/impl/TestServiceImpl.java
0 → 100644
View file @
e0e8ae2d
package
com
.
gic
.
message
.
service
.
impl
;
import
com.gic.message.service.TestService
;
import
org.springframework.stereotype.Service
;
/**
* test
* @Title: test
* @Description:
* @author taogs
* @param null
* @return
* @throws
*/
@Service
(
"testService"
)
public
class
TestServiceImpl
implements
TestService
{
/**
* test
* @Title: test
* @Description:
* @author taogs
* @return void
* @throws
*/
@Override
public
void
test
()
{
}
}
src/main/resources/dubbo-gic-platform-message.xml
View file @
e0e8ae2d
...
...
@@ -14,7 +14,7 @@
<dubbo:application
name=
"gic-platform-message"
/>
<dubbo:protocol
name=
"dubbo"
port=
"20340"
/>
<dubbo:service
interface=
"com.gic.message.service.TestService"
ref=
"testService"
timeout=
"6000"
/>
<dubbo:reference
interface=
"com.gic.bizdict.api.service.BizdictService"
id=
"bizdictService "
timeout=
"6000"
retries=
"0"
/>
<dubbo:reference
interface=
"com.gic.search.business.api.service.EsBusinessOperaApiService"
id=
"esBusinessOperaApiService"
timeout=
"6000"
/>
<dubbo:reference
interface=
"com.gic.enterprise.service.PlatformBrandApiService"
id=
"platformBrandApiService"
timeout=
"6000"
/>
...
...
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