|
@@ -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);
|