瀏覽代碼

查询订单本身的量sql修改

czh 1 年之前
父節點
當前提交
0c12cf5b1e

+ 2 - 1
sckw-modules/sckw-transport/src/main/resources/mapper/KwtLogisticsOrderAmountMapper.xml

@@ -61,7 +61,7 @@
     <select id="cancelOrderToAmountByOrderId" resultType="com.sckw.transport.model.vo.LogisticsOrderCancelAmountVo">
         SELECT
         a.l_order_id as lOrderId,
-        a.t_address_id AS tOrderId,
+        c.t_order_id AS tOrderId,
         a.id AS lAddressId,
         a.t_address_id AS tOrderAddressId,
         b.id as amountId,
@@ -69,6 +69,7 @@
         FROM
         kwt_logistics_order_address a
         LEFT JOIN kwt_logistics_order_amount b ON a.id = b.l_address_id
+        left join kwt_logistics_order c on a.l_order_id = c.id
         WHERE
         a.l_order_id = #{orderId}
         <if test="addressType != null">