进件标识
This commit is contained in:
@@ -65,7 +65,7 @@ public class EntryManagerMqListener {
|
|||||||
channel.basicNack(deliveryTag, false, false);
|
channel.basicNack(deliveryTag, false, false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (hasMessageId(String.valueOf(shopId))) {
|
if (hasMessageId(msg)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
@@ -102,14 +102,14 @@ public class EntryManagerMqListener {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("进件MQ对接业务异常shopId:{}", msg, e);
|
log.error("进件MQ对接业务异常shopId:{}", msg, e);
|
||||||
ShopDirectMerchant merchant = new ShopDirectMerchant();
|
ShopDirectMerchant merchant = new ShopDirectMerchant();
|
||||||
merchant.setShopId(Long.valueOf(msg));
|
merchant.setShopId(shopId);
|
||||||
merchant.setWechatStatus(PayCst.EntryStatus.REJECTED);
|
merchant.setWechatStatus(PayCst.EntryStatus.REJECTED);
|
||||||
merchant.setAlipayStatus(PayCst.EntryStatus.REJECTED);
|
merchant.setAlipayStatus(PayCst.EntryStatus.REJECTED);
|
||||||
merchant.setErrorMsg("系统错误,请联系管理员后重试。");
|
merchant.setErrorMsg("系统错误,请联系管理员后重试。");
|
||||||
shopDirectMerchantService.updateById(merchant);
|
shopDirectMerchantService.updateById(merchant);
|
||||||
channel.basicNack(deliveryTag, false, false);
|
channel.basicNack(deliveryTag, false, false);
|
||||||
} finally {
|
} finally {
|
||||||
delMessageId(String.valueOf(shopId));
|
delMessageId(msg);
|
||||||
// 清除日志上下文信息
|
// 清除日志上下文信息
|
||||||
ThreadContext.remove("messageId");
|
ThreadContext.remove("messageId");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user