记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
1809958b
Commit
1809958b
authored
Jun 28, 2021
by
张国柄
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
35bbd587
e3e7affe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
94 additions
and
0 deletions
+94
-0
MQConst.java
...c/main/java/com/liquidnet/common/mq/constant/MQConst.java
+10
-0
ConsumerProcessor.java
...service/consumer/service/processor/ConsumerProcessor.java
+84
-0
No files found.
liquidnet-bus-common/liquidnet-common-mq/src/main/java/com/liquidnet/common/mq/constant/MQConst.java
View file @
1809958b
...
@@ -46,6 +46,16 @@ public class MQConst {
...
@@ -46,6 +46,16 @@ public class MQConst {
public
static
final
String
ROUTING_KEY_SQL_ORDER_PAY
=
"order.pay"
;
public
static
final
String
ROUTING_KEY_SQL_ORDER_PAY
=
"order.pay"
;
public
static
final
String
QUEUES_SQL_ORDER_PAY
=
"queue.sql.order.pay"
;
public
static
final
String
QUEUES_SQL_ORDER_PAY
=
"queue.sql.order.pay"
;
//订单申请退款
public
static
final
String
EXCHANGES_LIQUIDNET_SQL_ORDER_REFUND
=
"liquidnet.sql.order.refund"
;
public
static
final
String
ROUTING_KEY_SQL_ORDER_REFUND
=
"order.refund"
;
public
static
final
String
QUEUES_SQL_ORDER_REFUND
=
"queue.sql.order.refund"
;
//订单申请撤回
public
static
final
String
EXCHANGES_LIQUIDNET_SQL_ORDER_WITHDRAW
=
"liquidnet.sql.order.withdraw"
;
public
static
final
String
ROUTING_KEY_SQL_ORDER_WITHDRAW
=
"order.withdraw"
;
public
static
final
String
QUEUES_SQL_ORDER_WITHDRAW
=
"queue.sql.order.withdraw"
;
/* -------------------------------------------------------- */
/* -------------------------------------------------------- */
// 验票更新
// 验票更新
...
...
liquidnet-bus-service/liquidnet-service-consumer/src/main/java/com/liquidnet/service/consumer/service/processor/ConsumerProcessor.java
View file @
1809958b
...
@@ -445,4 +445,88 @@ public class ConsumerProcessor {
...
@@ -445,4 +445,88 @@ public class ConsumerProcessor {
log
.
info
(
"=== CONSUMER_PERFORMANCE_LACK ==="
);
log
.
info
(
"=== CONSUMER_PERFORMANCE_LACK ==="
);
this
.
consumerSqlDaoHandler
(
msg
,
channel
);
this
.
consumerSqlDaoHandler
(
msg
,
channel
);
}
}
// 申请退款
@RabbitListener
(
bindings
=
@QueueBinding
(
exchange
=
@Exchange
(
MQConst
.
EXCHANGES_LIQUIDNET_SQL_ORDER_REFUND
),
key
=
MQConst
.
ROUTING_KEY_SQL_ORDER_REFUND
,
value
=
@Queue
(
MQConst
.
QUEUES_SQL_ORDER_REFUND
)
))
public
void
consumerOrderRefund
(
Message
msg
,
Channel
channel
)
{
log
.
info
(
"=== CONSUMER_ORDER_REFUND ==="
);
this
.
consumerSqlDaoHandler
(
msg
,
channel
);
}
@RabbitListener
(
bindings
=
@QueueBinding
(
exchange
=
@Exchange
(
MQConst
.
EXCHANGES_LIQUIDNET_SQL_ORDER_REFUND
),
key
=
MQConst
.
ROUTING_KEY_SQL_ORDER_REFUND
,
value
=
@Queue
(
MQConst
.
QUEUES_SQL_ORDER_REFUND
)
))
public
void
consumerOrderRefund1
(
Message
msg
,
Channel
channel
)
{
log
.
info
(
"=== CONSUMER_ORDER_REFUND ==="
);
this
.
consumerSqlDaoHandler
(
msg
,
channel
);
}
@RabbitListener
(
bindings
=
@QueueBinding
(
exchange
=
@Exchange
(
MQConst
.
EXCHANGES_LIQUIDNET_SQL_ORDER_REFUND
),
key
=
MQConst
.
ROUTING_KEY_SQL_ORDER_REFUND
,
value
=
@Queue
(
MQConst
.
QUEUES_SQL_ORDER_REFUND
)
))
public
void
consumerOrderRefund2
(
Message
msg
,
Channel
channel
)
{
log
.
info
(
"=== CONSUMER_ORDER_REFUND ==="
);
this
.
consumerSqlDaoHandler
(
msg
,
channel
);
}
@RabbitListener
(
bindings
=
@QueueBinding
(
exchange
=
@Exchange
(
MQConst
.
EXCHANGES_LIQUIDNET_SQL_ORDER_REFUND
),
key
=
MQConst
.
ROUTING_KEY_SQL_ORDER_REFUND
,
value
=
@Queue
(
MQConst
.
QUEUES_SQL_ORDER_REFUND
)
))
public
void
consumerOrderRefund3
(
Message
msg
,
Channel
channel
)
{
log
.
info
(
"=== CONSUMER_ORDER_REFUND ==="
);
this
.
consumerSqlDaoHandler
(
msg
,
channel
);
}
@RabbitListener
(
bindings
=
@QueueBinding
(
exchange
=
@Exchange
(
MQConst
.
EXCHANGES_LIQUIDNET_SQL_ORDER_REFUND
),
key
=
MQConst
.
ROUTING_KEY_SQL_ORDER_REFUND
,
value
=
@Queue
(
MQConst
.
QUEUES_SQL_ORDER_REFUND
)
))
public
void
consumerOrderRefund4
(
Message
msg
,
Channel
channel
)
{
log
.
info
(
"=== CONSUMER_ORDER_REFUND ==="
);
this
.
consumerSqlDaoHandler
(
msg
,
channel
);
}
// 申请退款撤回
@RabbitListener
(
bindings
=
@QueueBinding
(
exchange
=
@Exchange
(
MQConst
.
EXCHANGES_LIQUIDNET_SQL_ORDER_WITHDRAW
),
key
=
MQConst
.
ROUTING_KEY_SQL_ORDER_WITHDRAW
,
value
=
@Queue
(
MQConst
.
QUEUES_SQL_ORDER_WITHDRAW
)
))
public
void
consumerOrderRefundWithDraw
(
Message
msg
,
Channel
channel
)
{
log
.
info
(
"=== CONSUMER_ORDER_WITHDRAW ==="
);
this
.
consumerSqlDaoHandler
(
msg
,
channel
);
}
@RabbitListener
(
bindings
=
@QueueBinding
(
exchange
=
@Exchange
(
MQConst
.
EXCHANGES_LIQUIDNET_SQL_ORDER_WITHDRAW
),
key
=
MQConst
.
ROUTING_KEY_SQL_ORDER_WITHDRAW
,
value
=
@Queue
(
MQConst
.
QUEUES_SQL_ORDER_WITHDRAW
)
))
public
void
consumerOrderRefundWithDraw1
(
Message
msg
,
Channel
channel
)
{
log
.
info
(
"=== CONSUMER_ORDER_WITHDRAW ==="
);
this
.
consumerSqlDaoHandler
(
msg
,
channel
);
}
@RabbitListener
(
bindings
=
@QueueBinding
(
exchange
=
@Exchange
(
MQConst
.
EXCHANGES_LIQUIDNET_SQL_ORDER_WITHDRAW
),
key
=
MQConst
.
ROUTING_KEY_SQL_ORDER_WITHDRAW
,
value
=
@Queue
(
MQConst
.
QUEUES_SQL_ORDER_WITHDRAW
)
))
public
void
consumerOrderRefundWithDraw2
(
Message
msg
,
Channel
channel
)
{
log
.
info
(
"=== CONSUMER_ORDER_WITHDRAW ==="
);
this
.
consumerSqlDaoHandler
(
msg
,
channel
);
}
@RabbitListener
(
bindings
=
@QueueBinding
(
exchange
=
@Exchange
(
MQConst
.
EXCHANGES_LIQUIDNET_SQL_ORDER_WITHDRAW
),
key
=
MQConst
.
ROUTING_KEY_SQL_ORDER_WITHDRAW
,
value
=
@Queue
(
MQConst
.
QUEUES_SQL_ORDER_WITHDRAW
)
))
public
void
consumerOrderRefundWithDraw3
(
Message
msg
,
Channel
channel
)
{
log
.
info
(
"=== CONSUMER_ORDER_WITHDRAW ==="
);
this
.
consumerSqlDaoHandler
(
msg
,
channel
);
}
@RabbitListener
(
bindings
=
@QueueBinding
(
exchange
=
@Exchange
(
MQConst
.
EXCHANGES_LIQUIDNET_SQL_ORDER_WITHDRAW
),
key
=
MQConst
.
ROUTING_KEY_SQL_ORDER_WITHDRAW
,
value
=
@Queue
(
MQConst
.
QUEUES_SQL_ORDER_WITHDRAW
)
))
public
void
consumerOrderRefundWithDraw4
(
Message
msg
,
Channel
channel
)
{
log
.
info
(
"=== CONSUMER_ORDER_WITHDRAW ==="
);
this
.
consumerSqlDaoHandler
(
msg
,
channel
);
}
}
}
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