Browse Source

支付生成直推人积分

Ben 5 months ago
parent
commit
34252ced9b

+ 6 - 6
feifan-module-mall/feifan-module-trade-biz/src/main/java/cn/newfeifan/mall/module/trade/controller/app/order/AppTradeOrderController.java

@@ -78,13 +78,13 @@ public class AppTradeOrderController {
 
         CommonResult<PayOrderRespVO> success = success(PayOrderConvert.INSTANCE.convert(newPayOrderDO));
 
-        boolean test = true;
-        if(true)
+//        boolean test = true;
+//        if(true)
         //如果在上一行代码,把支付订单状态从“待支付”,改为“已支付”,则证明订单支付成功,则改trade_order表状态为待发货,并且分配积分
-//        if(oldPayOrderDO.getStatus().equals(PayOrderStatusEnum.WAITING.getStatus())
-//                &&
-//                newPayOrderDO.getStatus().equals(PayOrderStatusEnum.SUCCESS.getStatus())
-//        )
+        if(oldPayOrderDO.getStatus().equals(PayOrderStatusEnum.WAITING.getStatus())
+                &&
+                newPayOrderDO.getStatus().equals(PayOrderStatusEnum.SUCCESS.getStatus())
+        )
         {
             //只有支付订单id参数payOrderId是有用的。
             List list = tradeOrderUpdateService.updateOrderPaid(id);