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
2f38870a
Commit
2f38870a
authored
Jul 31, 2023
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付查询mq打印日志排查问题
parent
b8d671ed
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
order-application-service/src/main/java/cn/freemud/amp/config/DlPayQueryMqConfig.java
+3
-3
order-application-service/src/main/java/cn/freemud/service/impl/OrderQueueService.java
+2
-0
order-application-service/src/main/java/cn/freemud/service/impl/PayServiceImpl.java
+1
-0
No files found.
order-application-service/src/main/java/cn/freemud/amp/config/DlPayQueryMqConfig.java
View file @
2f38870a
...
...
@@ -36,7 +36,7 @@ public class DlPayQueryMqConfig {
* @return
*/
@Bean
(
"payQueueName"
)
public
Queue
pay
mentChangeQueu
e
()
{
public
Queue
pay
QueueNam
e
()
{
return
QueueBuilder
.
durable
(
KGD_PAY_QUERY_QUEUE
).
build
();
}
...
...
@@ -54,7 +54,7 @@ public class DlPayQueryMqConfig {
@Bean
(
"payChangeDlQueue"
)
public
Queue
pay
ment
ChangeDlQueue
()
{
public
Queue
payChangeDlQueue
()
{
Map
<
String
,
Object
>
delayQueueParams
=
new
HashMap
<>(
2
);
// DLX,dead letter发送到的exchange
delayQueueParams
.
put
(
"x-dead-letter-exchange"
,
TopicExchangeConfig
.
EXCHANGE_NAME
);
...
...
@@ -66,7 +66,7 @@ public class DlPayQueryMqConfig {
}
@Bean
(
"bindingPayDlChange"
)
Binding
bindingPay
ment
DlChange
(
@Qualifier
(
"payChangeDlQueue"
)
Queue
queue
,
@Qualifier
(
"dlPayMqTopicExchange"
)
Exchange
topicExchange
)
{
Binding
bindingPayDlChange
(
@Qualifier
(
"payChangeDlQueue"
)
Queue
queue
,
@Qualifier
(
"dlPayMqTopicExchange"
)
Exchange
topicExchange
)
{
Map
<
String
,
Object
>
args
=
new
HashMap
<>(
2
);
args
.
put
(
"x-dead-letter-exchange"
,
TopicExchangeConfig
.
EXCHANGE_NAME
);
args
.
put
(
"x-dead-letter-routing-key"
,
KGD_PAY_QUERY_KEY
);
...
...
order-application-service/src/main/java/cn/freemud/service/impl/OrderQueueService.java
View file @
2f38870a
...
...
@@ -126,6 +126,7 @@ public class OrderQueueService {
messageProperties
.
setContentType
(
MessageProperties
.
CONTENT_TYPE_JSON
);
Message
delmessage
=
new
Message
(
notifyMsgBytes
,
messageProperties
);
mqService
.
convertAndSend
(
TopicExchangeConfig
.
EXCHANGE_NAME
,
DlPaymentMqConfig
.
OPEN_STORE_PAYMENT_QUERY_DL_KEY
,
delmessage
);
AppLogUtil
.
infoLog
(
"paymentCallback oid:{} fmId:{}"
,
dto
.
getOrderId
(),
dto
.
getFmId
());
}
/**
...
...
@@ -142,5 +143,6 @@ public class OrderQueueService {
messageProperties
.
setExpiration
(
"5000"
);
//5秒
messageProperties
.
setContentType
(
MessageProperties
.
CONTENT_TYPE_JSON
);
mqService
.
convertAndSend
(
TopicExchangeConfig
.
EXCHANGE_NAME
,
DlPayQueryMqConfig
.
KGD_PAY_QUERY_DL_KEY
,
new
Message
(
notifyMsgBytes
,
messageProperties
));
AppLogUtil
.
infoLog
(
"putPayQueryDelMq oid:{} fmId:{}"
,
dto
.
getOrderId
(),
dto
.
getFmId
());
}
}
order-application-service/src/main/java/cn/freemud/service/impl/PayServiceImpl.java
View file @
2f38870a
...
...
@@ -1233,6 +1233,7 @@ public class PayServiceImpl {
dto
.
setPayChannelType
(
payChanelType
);
dto
.
setTrackingNo
(
LogThreadLocal
.
getTrackingNo
());
try
{
orderQueueService
.
paymentCallback
(
dto
);
orderQueueService
.
putPayQueryDelMq
(
dto
);
}
catch
(
Exception
e
)
{
AppLogUtil
.
errorLog
(
"paymentQueueService.paymentCallback,orderId:{}"
,
orderId
,
null
,
e
);
...
...
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