Просмотр исходного кода

app 处理订单详情TotalPrice 值

lxb 2 недель назад
Родитель
Сommit
11ce5e0f99

+ 2 - 2
fs-user-app/src/main/java/com/fs/app/controller/live/LiveOrderController.java

@@ -350,10 +350,10 @@ public class LiveOrderController extends AppBaseController
         log.info("获取订单详细信息 参数: {}",orderId);
         LiveOrder liveOrder = orderService.selectLiveOrderByOrderId(orderId);
         //订单总价 临时处理 为 商品支付金额(商品支付金额=订单总价-快递费)
-        if(ObjectUtil.isNull(liveOrder)) {
+        if(ObjectUtil.isNotEmpty(liveOrder)) {
             liveOrder.setTotalPrice(liveOrder.getTotalPrice().subtract(liveOrder.getPayDelivery()));
         }
-        return AjaxResult.success();
+        return AjaxResult.success(liveOrder);
     }
 
     @Login