Commit 0dd9b346 authored by terrfly's avatar terrfly
Browse files

数据库已存在[{}]消息,本次不再推送

parent 5c110d3a
...@@ -83,7 +83,13 @@ public class PayMchNotifyService { ...@@ -83,7 +83,13 @@ public class PayMchNotifyService {
mchNotifyRecord.setResResult(""); mchNotifyRecord.setResResult("");
mchNotifyRecord.setNotifyCount(0); mchNotifyRecord.setNotifyCount(0);
mchNotifyRecord.setState(MchNotifyRecord.STATE_ING); // 通知中 mchNotifyRecord.setState(MchNotifyRecord.STATE_ING); // 通知中
mchNotifyRecordService.save(mchNotifyRecord);
try {
mchNotifyRecordService.save(mchNotifyRecord);
} catch (Exception e) {
log.info("数据库已存在[{}]消息,本次不再推送。", mchNotifyRecord.getOrderId());
return ;
}
//推送到MQ //推送到MQ
Long notifyId = mchNotifyRecord.getNotifyId(); Long notifyId = mchNotifyRecord.getNotifyId();
...@@ -128,7 +134,13 @@ public class PayMchNotifyService { ...@@ -128,7 +134,13 @@ public class PayMchNotifyService {
mchNotifyRecord.setResResult(""); mchNotifyRecord.setResResult("");
mchNotifyRecord.setNotifyCount(0); mchNotifyRecord.setNotifyCount(0);
mchNotifyRecord.setState(MchNotifyRecord.STATE_ING); // 通知中 mchNotifyRecord.setState(MchNotifyRecord.STATE_ING); // 通知中
mchNotifyRecordService.save(mchNotifyRecord);
try {
mchNotifyRecordService.save(mchNotifyRecord);
} catch (Exception e) {
log.info("数据库已存在[{}]消息,本次不再推送。", mchNotifyRecord.getOrderId());
return ;
}
//推送到MQ //推送到MQ
Long notifyId = mchNotifyRecord.getNotifyId(); Long notifyId = mchNotifyRecord.getNotifyId();
...@@ -173,7 +185,13 @@ public class PayMchNotifyService { ...@@ -173,7 +185,13 @@ public class PayMchNotifyService {
mchNotifyRecord.setResResult(""); mchNotifyRecord.setResResult("");
mchNotifyRecord.setNotifyCount(0); mchNotifyRecord.setNotifyCount(0);
mchNotifyRecord.setState(MchNotifyRecord.STATE_ING); // 通知中 mchNotifyRecord.setState(MchNotifyRecord.STATE_ING); // 通知中
mchNotifyRecordService.save(mchNotifyRecord);
try {
mchNotifyRecordService.save(mchNotifyRecord);
} catch (Exception e) {
log.info("数据库已存在[{}]消息,本次不再推送。", mchNotifyRecord.getOrderId());
return ;
}
//推送到MQ //推送到MQ
Long notifyId = mchNotifyRecord.getNotifyId(); Long notifyId = mchNotifyRecord.getNotifyId();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment