|
|
@@ -2072,7 +2072,7 @@
|
|
|
a.entrust_amount AS entrustAmount,
|
|
|
a.subcontract_amount AS subcontractAmount,
|
|
|
a.price,
|
|
|
- a.amount * IFNULL(a.price, 0) AS totalPrice
|
|
|
+ case when a.billing_mode = '3' then IFNULL( a.price, 0 ) else a.amount * IFNULL( a.price, 0 ) end AS totalPrice
|
|
|
FROM kwt_logistics_order a
|
|
|
LEFT JOIN kwt_logistics_order_unit b ON a.id = b.l_order_id
|
|
|
AND a.del_flag = 0
|
|
|
@@ -2115,7 +2115,7 @@
|
|
|
a.entrust_amount AS entrustAmount,
|
|
|
a.subcontract_amount AS subcontractAmount,
|
|
|
a.price,
|
|
|
- a.amount * IFNULL(a.price, 0) AS totalPrice
|
|
|
+ case when a.billing_mode = '3' then IFNULL( a.price, 0 ) else a.amount * IFNULL( a.price, 0 ) end AS totalPrice
|
|
|
FROM kwt_logistics_order a
|
|
|
LEFT JOIN kwt_logistics_order_unit b ON a.id = b.l_order_id
|
|
|
AND a.del_flag = 0
|
|
|
@@ -2152,7 +2152,7 @@
|
|
|
a.entrust_amount AS entrustAmount,
|
|
|
a.subcontract_amount AS subcontractAmount,
|
|
|
a.price,
|
|
|
- a.amount * IFNULL(a.price, 0) AS totalPrice
|
|
|
+ case when a.billing_mode = '3' then IFNULL( a.price, 0 ) else a.amount * IFNULL( a.price, 0 ) end AS totalPrice
|
|
|
FROM kwt_logistics_order a
|
|
|
LEFT JOIN kwt_logistics_order_unit b ON a.id = b.l_order_id
|
|
|
AND a.del_flag = 0
|