Showing
1 changed file
with
9 additions
and
5 deletions
@@ -96,12 +96,16 @@ public class SellerOrderCancelDeliverDelayMsgConsumer implements YhConsumer { | @@ -96,12 +96,16 @@ public class SellerOrderCancelDeliverDelayMsgConsumer implements YhConsumer { | ||
96 | try{ | 96 | try{ |
97 | payRefundService.refund(req, bleb); | 97 | payRefundService.refund(req, bleb); |
98 | // | 98 | // |
99 | - SellerOrderGoods sog = event.getSellerOrderGoods(); | ||
100 | - if (sog == null){ | ||
101 | - sog = sellerOrderGoodsMapper.selectByPrimaryKey(event.getSkup()); | 99 | + final int times = 3; |
100 | + try { | ||
101 | + SellerOrderGoods sog = event.getSellerOrderGoods(); | ||
102 | + if (sog == null) { | ||
103 | + sog = sellerOrderGoodsMapper.selectByPrimaryKey(event.getSkup()); | ||
104 | + } | ||
105 | + inBoxFacade.sellerDeliverNotice(sog, orderCode, times); | ||
106 | + }catch (Exception ex){ | ||
107 | + logger.warn("in topic {} , sellerDeliverNotice fail,times {} req {}", getMessageTopic(), times, req, ex); | ||
102 | } | 108 | } |
103 | - | ||
104 | - inBoxFacade.sellerDeliverNotice(sog, orderCode,3); | ||
105 | }catch (Exception ex){ | 109 | }catch (Exception ex){ |
106 | logger.warn("in topic {} , refund fail,req {}", getMessageTopic(), req, ex); | 110 | logger.warn("in topic {} , refund fail,req {}", getMessageTopic(), req, ex); |
107 | BillLogEvent buyererBillLogEvent = bleb.tradeStatus(BillTradeStatus.FAIL.getCode()) | 111 | BillLogEvent buyererBillLogEvent = bleb.tradeStatus(BillTradeStatus.FAIL.getCode()) |
-
Please register or login to post a comment