Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Jeepay
Commits
0dd9b346
Commit
0dd9b346
authored
Aug 16, 2021
by
terrfly
Browse files
数据库已存在[{}]消息,本次不再推送
parent
5c110d3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/service/PayMchNotifyService.java
View file @
0dd9b346
...
...
@@ -83,7 +83,13 @@ public class PayMchNotifyService {
mchNotifyRecord
.
setResResult
(
""
);
mchNotifyRecord
.
setNotifyCount
(
0
);
mchNotifyRecord
.
setState
(
MchNotifyRecord
.
STATE_ING
);
// 通知中
mchNotifyRecordService
.
save
(
mchNotifyRecord
);
try
{
mchNotifyRecordService
.
save
(
mchNotifyRecord
);
}
catch
(
Exception
e
)
{
log
.
info
(
"数据库已存在[{}]消息,本次不再推送。"
,
mchNotifyRecord
.
getOrderId
());
return
;
}
//推送到MQ
Long
notifyId
=
mchNotifyRecord
.
getNotifyId
();
...
...
@@ -128,7 +134,13 @@ public class PayMchNotifyService {
mchNotifyRecord
.
setResResult
(
""
);
mchNotifyRecord
.
setNotifyCount
(
0
);
mchNotifyRecord
.
setState
(
MchNotifyRecord
.
STATE_ING
);
// 通知中
mchNotifyRecordService
.
save
(
mchNotifyRecord
);
try
{
mchNotifyRecordService
.
save
(
mchNotifyRecord
);
}
catch
(
Exception
e
)
{
log
.
info
(
"数据库已存在[{}]消息,本次不再推送。"
,
mchNotifyRecord
.
getOrderId
());
return
;
}
//推送到MQ
Long
notifyId
=
mchNotifyRecord
.
getNotifyId
();
...
...
@@ -173,7 +185,13 @@ public class PayMchNotifyService {
mchNotifyRecord
.
setResResult
(
""
);
mchNotifyRecord
.
setNotifyCount
(
0
);
mchNotifyRecord
.
setState
(
MchNotifyRecord
.
STATE_ING
);
// 通知中
mchNotifyRecordService
.
save
(
mchNotifyRecord
);
try
{
mchNotifyRecordService
.
save
(
mchNotifyRecord
);
}
catch
(
Exception
e
)
{
log
.
info
(
"数据库已存在[{}]消息,本次不再推送。"
,
mchNotifyRecord
.
getOrderId
());
return
;
}
//推送到MQ
Long
notifyId
=
mchNotifyRecord
.
getNotifyId
();
...
...
Write
Preview
Supports
Markdown
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