Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
6b3aaf8a
Commit
6b3aaf8a
authored
Sep 03, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-tiande' into dev-tiande
parents
3b609a77
1bf2f81e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
RabbitTourConfig.java
.../java/com/xxfc/platform/tour/config/RabbitTourConfig.java
+4
-4
BranchCompanyMQHandler.java
...om/xxfc/platform/tour/handler/BranchCompanyMQHandler.java
+1
-1
CorporationMQHandler.java
.../com/xxfc/platform/tour/handler/CorporationMQHandler.java
+1
-1
No files found.
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/config/RabbitTourConfig.java
View file @
6b3aaf8a
...
@@ -21,18 +21,18 @@ public class RabbitTourConfig extends RabbitCommonConfig {
...
@@ -21,18 +21,18 @@ public class RabbitTourConfig extends RabbitCommonConfig {
//同步企业信息
//同步企业信息
public
static
final
String
CORPORATION_UPD_QUEUE
=
"tourC
orporation:upd.queue"
;
public
static
final
String
TOUR_CORPORATION_UPD_QUEUE
=
"tour.c
orporation:upd.queue"
;
//同步门店信息
//同步门店信息
public
static
final
String
COMPANY_UPD_QUEUE
=
"tourC
ompany:upd.queue"
;
public
static
final
String
TOUR_COMPANY_UPD_QUEUE
=
"tour.c
ompany:upd.queue"
;
static
{
static
{
myQueue
=
new
ArrayList
<
BindDTO
>()
{{
myQueue
=
new
ArrayList
<
BindDTO
>()
{{
//企业
//企业
add
(
new
BindDTO
(
CORPORATION_UPD_QUEUE
,
VEHICLE_TOPIC
,
KEY_CORPORATION_UPD
));
add
(
new
BindDTO
(
TOUR_
CORPORATION_UPD_QUEUE
,
VEHICLE_TOPIC
,
KEY_CORPORATION_UPD
));
//门店
//门店
add
(
new
BindDTO
(
COMPANY_UPD_QUEUE
,
VEHICLE_TOPIC
,
KEY_COMPANY_UPD
));
add
(
new
BindDTO
(
TOUR_
COMPANY_UPD_QUEUE
,
VEHICLE_TOPIC
,
KEY_COMPANY_UPD
));
}};
}};
}
}
}
}
...
...
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/handler/BranchCompanyMQHandler.java
View file @
6b3aaf8a
...
@@ -33,7 +33,7 @@ public class BranchCompanyMQHandler {
...
@@ -33,7 +33,7 @@ public class BranchCompanyMQHandler {
* 同步门店信息
* 同步门店信息
* @param
* @param
*/
*/
@RabbitListener
(
queues
=
COMPANY_UPD_QUEUE
)
@RabbitListener
(
queues
=
TOUR_
COMPANY_UPD_QUEUE
)
public
void
integralHandler
(
Message
message
,
@Headers
Map
<
String
,
Object
>
headers
,
Channel
channel
)
{
public
void
integralHandler
(
Message
message
,
@Headers
Map
<
String
,
Object
>
headers
,
Channel
channel
)
{
log
.
info
(
"同步门店信息 messageJson:"
+
JSONUtil
.
parse
(
message
));
log
.
info
(
"同步门店信息 messageJson:"
+
JSONUtil
.
parse
(
message
));
ExecutorService
executorService
=
Executors
.
newCachedThreadPool
();
ExecutorService
executorService
=
Executors
.
newCachedThreadPool
();
...
...
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/handler/CorporationMQHandler.java
View file @
6b3aaf8a
...
@@ -34,7 +34,7 @@ public class CorporationMQHandler {
...
@@ -34,7 +34,7 @@ public class CorporationMQHandler {
* 同步企业信息
* 同步企业信息
* @param
* @param
*/
*/
@RabbitListener
(
queues
=
CORPORATION_UPD_QUEUE
)
@RabbitListener
(
queues
=
TOUR_
CORPORATION_UPD_QUEUE
)
public
void
integralHandler
(
Message
message
,
@Headers
Map
<
String
,
Object
>
headers
,
Channel
channel
)
{
public
void
integralHandler
(
Message
message
,
@Headers
Map
<
String
,
Object
>
headers
,
Channel
channel
)
{
log
.
info
(
"同步企业信息 messageJson:"
+
JSONUtil
.
parse
(
message
));
log
.
info
(
"同步企业信息 messageJson:"
+
JSONUtil
.
parse
(
message
));
ExecutorService
executorService
=
Executors
.
newCachedThreadPool
();
ExecutorService
executorService
=
Executors
.
newCachedThreadPool
();
...
...
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