|
@@ -6,11 +6,14 @@ import cn.newfeifan.mall.module.member.api.user.dto.MemberUserRespDTO;
|
|
|
//import cn.newfeifan.mall.module.pay.dal.dataobject.order.PayOrderDO;
|
|
|
import cn.newfeifan.mall.module.pay.dal.dataobject.order.PayOrderDO;
|
|
|
import cn.newfeifan.mall.module.pay.service.order.PayOrderService;
|
|
|
+import cn.newfeifan.mall.module.product.dal.dataobject.sku.ProductSkuDO;
|
|
|
+import cn.newfeifan.mall.module.product.service.sku.ProductSkuService;
|
|
|
import cn.newfeifan.mall.module.trade.controller.admin.aftersale.vo.AfterSaleBaseVO;
|
|
|
import cn.newfeifan.mall.module.trade.controller.admin.order.vo.*;
|
|
|
import cn.newfeifan.mall.module.trade.controller.admin.order.vo.detailvo.TradeOrderDeliveryVO;
|
|
|
import cn.newfeifan.mall.module.trade.controller.admin.order.vo.detailvo.TradeOrderPayVo;
|
|
|
import cn.newfeifan.mall.module.trade.controller.app.order.vo.AppTradeOrderDetailRespVO;
|
|
|
+import cn.newfeifan.mall.module.trade.controller.app.order.vo.item.AppTradeOrderItemRespVO;
|
|
|
import cn.newfeifan.mall.module.trade.convert.aftersale.AfterSaleConvert;
|
|
|
import cn.newfeifan.mall.module.trade.convert.order.TradeOrderConvert;
|
|
|
import cn.newfeifan.mall.module.trade.dal.dataobject.aftersale.AfterSaleDO;
|
|
@@ -63,6 +66,9 @@ public class TradeOrderDetailController {
|
|
|
@Resource
|
|
|
private AfterSaleService afterSaleService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private ProductSkuService productSkuService;
|
|
|
+
|
|
|
@Resource
|
|
|
private DeliveryExpressService deliveryExpressService;
|
|
|
|
|
@@ -183,7 +189,12 @@ public class TradeOrderDetailController {
|
|
|
DeliveryExpressDO express = order.getLogisticsId() != null && order.getLogisticsId() > 0 ?
|
|
|
deliveryExpressService.getDeliveryExpress(order.getLogisticsId()) : null;
|
|
|
// 最终组合
|
|
|
- return success(TradeOrderConvert.INSTANCE.convert02(order, orderItems, tradeOrderProperties, express));
|
|
|
+ AppTradeOrderDetailRespVO respVO = TradeOrderConvert.INSTANCE.convert02(order, orderItems, tradeOrderProperties, express);
|
|
|
+ for (AppTradeOrderItemRespVO item : respVO.getItems()) {
|
|
|
+ ProductSkuDO sku = productSkuService.getSku(item.getSkuId());
|
|
|
+ item.setHighPrecisionPrice(sku.getHighPrecisionPrice());
|
|
|
+ }
|
|
|
+ return success(respVO);
|
|
|
}
|
|
|
|
|
|
|