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
d543d861
Commit
d543d861
authored
Jul 15, 2022
by
周晓航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单聚合中台CallBack服务订单消息分发合并优化
parent
578345cf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
10 deletions
+37
-10
call-back-service/src/main/java/cn/freemud/amp/config/OrderCallBackConfig.java
+37
-10
call-back-service/src/main/java/cn/freemud/amp/service/OrderCallBackMQService.java
+0
-0
No files found.
call-back-service/src/main/java/cn/freemud/amp/config/OrderCallBackConfig.java
View file @
d543d861
...
...
@@ -28,21 +28,28 @@ public class OrderCallBackConfig {
public
static
final
String
OPEN_PLATFORM_ORDER_STATUS_CHANGE_PUSH_QUEUE_NAME
=
"open-platform-order-status-change-push-queue"
;
public
static
final
String
OPEN_PLATFORM_ORDER_STATUS_CHANGE_PUSH_ROUTING_KEY
=
"open-platform-order-status-change-routing-key"
;
public
static
final
String
WECHAT_REPORT_QUEUE_ROUTING_KEY
=
"wechat-report-queue-routing-key"
;
public
static
final
String
WECHAT_REPORT_QUEUE_ROUTING_KEY
=
"wechat-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_ROUTING_KEY
=
"wechat-order-report-queue-routing-key"
;
public
static
final
String
WECHAT_ORDER_REPORT_QUEUE
=
"wechat-order-report-queue"
;
public
static
final
String
INVOICE_QUEUE
=
"invoice-report-queue"
;
public
static
final
String
INVOICE_ROUTE_KEY
=
"invoice-report-queue-routing-key"
;
// 腾讯有数上报 & 门店营业开店记录 发送到 ordercenter-order组的 mq中
public
static
final
String
SEND_YOUSHU_REPORT_QUEUE_ROUTING_KEY
=
"send-youshu-report-queue-routing-key"
;
public
static
final
String
SEND_YOUSHU_REPORT_QUEUE
=
"send-youshu-report-queue"
;
@Deprecated
public
static
final
String
SEND_YOUSHU_REPORT_QUEUE_ROUTING_KEY
=
"send-youshu-report-queue-routing-key"
;
@Deprecated
public
static
final
String
SEND_YOUSHU_REPORT_QUEUE
=
"send-youshu-report-queue"
;
// task-center-order-consumer服务 订单状态处理中心queue
public
static
final
String
ORDER_STATUS_PROCESS_CENTER_QUEUE_ROUTING_KEY
=
"order_status_process_center_queue-routing-key"
;
public
static
final
String
ORDER_STATUS_PROCESS_CENTER_QUEUE
=
"order_status_process_center_queue"
;
// 支付宝订单状态推送 tapd需求id 1032865
public
static
final
String
ZFB_ORDER_SEND_QUEUE_ROUTING_KEY
=
"zfb-order-send-queue-routing-key"
;
public
static
final
String
ZFB_ORDER_SEND_QUEUE
=
"zfb-order-send-queue"
;
public
static
final
String
ZFB_ORDER_SEND_QUEUE_ROUTING_KEY
=
"zfb-order-send-queue-routing-key"
;
public
static
final
String
ZFB_ORDER_SEND_QUEUE
=
"zfb-order-send-queue"
;
/**
* 定义基于Fanout 的Exchange。
...
...
@@ -109,23 +116,27 @@ public class OrderCallBackConfig {
/**
* 发票queue绑定设置
*
* @return
*/
@Bean
(
name
=
"invoiceExchange"
)
public
Exchange
invoiceExchange
()
{
return
ExchangeBuilder
.
topicExchange
(
TOPIC_EXCHANGE_NAME
).
durable
(
true
).
build
();
}
@Bean
(
name
=
"invoiceQueue"
)
@Bean
(
name
=
"invoiceQueue"
)
public
Queue
invoiceQueue
()
{
return
QueueBuilder
.
durable
(
INVOICE_QUEUE
).
build
();
}
@Bean
Binding
bindingInvoiceQueue
(
@Qualifier
(
"invoiceQueue"
)
Queue
invoiceQueue
,
@Qualifier
(
"invoiceExchange"
)
Exchange
invoiceExchange
)
{
Binding
bindingInvoiceQueue
(
@Qualifier
(
"invoiceQueue"
)
Queue
invoiceQueue
,
@Qualifier
(
"invoiceExchange"
)
Exchange
invoiceExchange
)
{
return
BindingBuilder
.
bind
(
invoiceQueue
).
to
(
invoiceExchange
).
with
(
INVOICE_ROUTE_KEY
).
noargs
();
}
/**
* 有数上报/ 支付门店 queue 绑定
* 有数上报/ 支付门店 queue 绑定
*
* @return
*/
@Bean
(
name
=
"sendWechatReportQueue"
)
...
...
@@ -137,4 +148,20 @@ public class OrderCallBackConfig {
Binding
bindingSendWechatReportQueue
(
@Qualifier
(
"sendWechatReportQueue"
)
Queue
sendWechatReportQueue
,
@Qualifier
(
"topicExchange"
)
Exchange
topicExchange
)
{
return
BindingBuilder
.
bind
(
sendWechatReportQueue
).
to
(
topicExchange
).
with
(
SEND_YOUSHU_REPORT_QUEUE_ROUTING_KEY
).
noargs
();
}
/**
* 有数上报/ 支付门店 queue 绑定
*
* @return
*/
@Bean
(
name
=
"orderStatusProcessCenterQueue"
)
public
Queue
orderStatusProcessCenterQueue
()
{
return
QueueBuilder
.
durable
(
ORDER_STATUS_PROCESS_CENTER_QUEUE
).
build
();
}
@Bean
Binding
bindingOrderStatusProcessCenterQueue
(
@Qualifier
(
"orderStatusProcessCenterQueue"
)
Queue
orderStatusProcessCenterQueue
,
@Qualifier
(
"topicExchange"
)
Exchange
topicExchange
)
{
return
BindingBuilder
.
bind
(
orderStatusProcessCenterQueue
).
to
(
topicExchange
).
with
(
ORDER_STATUS_PROCESS_CENTER_QUEUE_ROUTING_KEY
).
noargs
();
}
}
call-back-service/src/main/java/cn/freemud/amp/service/OrderCallBackMQService.java
View file @
d543d861
This diff is collapsed.
Click to expand it.
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