Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
ac054672
Commit
ac054672
authored
Apr 29, 2020
by
xiaoer.li@freemud.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整exchange
parent
cd0cabd7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
call-back-service/src/main/java/cn/freemud/amp/config/OrderCallBackConfig.java
+1
-2
call-back-service/src/main/java/cn/freemud/service/impl/ToolsServiceImpl.java
+1
-1
No files found.
call-back-service/src/main/java/cn/freemud/amp/config/OrderCallBackConfig.java
View file @
ac054672
...
@@ -33,7 +33,6 @@ public class OrderCallBackConfig {
...
@@ -33,7 +33,6 @@ public class OrderCallBackConfig {
public
static
final
String
WECHAT_ORDER_REPORT_QUEUE_ROUTING_KEY
=
"wechat-order-report-queue-routing-key"
;
public
static
final
String
WECHAT_ORDER_REPORT_QUEUE_ROUTING_KEY
=
"wechat-order-report-queue-routing-key"
;
public
static
final
String
WECHAT_ORDER_REPORT_QUEUE
=
"wechat-order-report-queue"
;
public
static
final
String
WECHAT_ORDER_REPORT_QUEUE
=
"wechat-order-report-queue"
;
public
static
final
String
INVOICE_EXCHANGE
=
"invoice-report-topic-exchange"
;
public
static
final
String
INVOICE_QUEUE
=
"invoice-report-queue"
;
public
static
final
String
INVOICE_QUEUE
=
"invoice-report-queue"
;
public
static
final
String
INVOICE_ROUTE_KEY
=
"invoice-report-queue-routing-key"
;
public
static
final
String
INVOICE_ROUTE_KEY
=
"invoice-report-queue-routing-key"
;
/**
/**
...
@@ -105,7 +104,7 @@ public class OrderCallBackConfig {
...
@@ -105,7 +104,7 @@ public class OrderCallBackConfig {
*/
*/
@Bean
(
name
=
"invoiceExchange"
)
@Bean
(
name
=
"invoiceExchange"
)
public
Exchange
invoiceExchange
()
{
public
Exchange
invoiceExchange
()
{
return
ExchangeBuilder
.
topicExchange
(
INVOICE_EXCHANG
E
).
durable
(
true
).
build
();
return
ExchangeBuilder
.
topicExchange
(
TOPIC_EXCHANGE_NAM
E
).
durable
(
true
).
build
();
}
}
@Bean
(
name
=
"invoiceQueue"
)
@Bean
(
name
=
"invoiceQueue"
)
public
Queue
invoiceQueue
()
{
public
Queue
invoiceQueue
()
{
...
...
call-back-service/src/main/java/cn/freemud/service/impl/ToolsServiceImpl.java
View file @
ac054672
...
@@ -81,7 +81,7 @@ public class ToolsServiceImpl implements ToolsService {
...
@@ -81,7 +81,7 @@ public class ToolsServiceImpl implements ToolsService {
OrderCallBackConfig
.
INVOICE_ROUTE_KEY
,
OrderCallBackConfig
.
INVOICE_QUEUE
);
OrderCallBackConfig
.
INVOICE_ROUTE_KEY
,
OrderCallBackConfig
.
INVOICE_QUEUE
);
MQMessage
<
String
>
message
=
new
MQMessage
<>(
header
,
JSON
.
toJSONString
(
reqs
));
MQMessage
<
String
>
message
=
new
MQMessage
<>(
header
,
JSON
.
toJSONString
(
reqs
));
mqService
.
convertAndSend
(
OrderCallBackConfig
.
INVOICE_EXCHANG
E
,
OrderCallBackConfig
.
INVOICE_ROUTE_KEY
,
message
);
mqService
.
convertAndSend
(
OrderCallBackConfig
.
TOPIC_EXCHANGE_NAM
E
,
OrderCallBackConfig
.
INVOICE_ROUTE_KEY
,
message
);
}
}
}
}
return
new
BaseResponse
(
"1"
,
"100"
,
"写入MQ:"
+
orderTotal
);
return
new
BaseResponse
(
"1"
,
"100"
,
"写入MQ:"
+
orderTotal
);
...
...
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