Browse Source

补充定时查询支付订单

Yangzw 2 months ago
parent
commit
f46e18ad38

+ 4 - 0
feifan-module-pay/feifan-module-pay-biz/src/main/java/cn/newfeifan/mall/module/pay/service/order/PayOrderServiceImpl.java

@@ -376,11 +376,15 @@ public class PayOrderServiceImpl implements PayOrderService {
         PayOrderDO payOrderDO = orderMapper.selectById(order.getId());
         System.out.println(payOrderDO.getStatus());
 
+        log.info("补漏分配权益订单");
+
         // 判断是商品订单还是充值订单
         if (payOrderDO.getNo().contains(DictTypeConstants.TUP_UP_NO)) {
+            log.info("充值订单号:{}", payOrderDO.getNo());
             // 充值消费分订单
             topUpConsumptionPointsProducer.sendTradeOrderMessage(payOrderDO);
         } else {
+            log.info("商品订单号:{}", payOrderDO.getNo());
             //如果确实是漏了订单未支付成功,那就补充回来
             tradeOrderProducer.sendTradeOrderMessage(order.getId());
         }