From a103a0cf56cb67d0f09de68cadb2110a4a0fa362 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Fri, 4 Jun 2021 17:12:43 +0800 Subject: [PATCH] aa --- business/model/dao/dao_order.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index 46d232c6b..6bf1acc10 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -774,7 +774,7 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat SELECT SQL_CALC_FOUND_ROWS a.* FROM ( SELECT DISTINCT t1.*, - CAST(IF(t1.earning_price <> 0, t1.earning_price, IF(t1.shop_price <> 0 && t1.shop_price < t1.sale_price, t1.shop_price, t1.sale_price) * IF(t1.order_pay_percentage > 0, t1.order_pay_percentage, %d) / 100) AS SIGNED) earning_price, + -- CAST(IF(t1.earning_price <> 0, t1.earning_price, IF(t1.shop_price <> 0 && t1.shop_price < t1.sale_price, t1.shop_price, t1.sale_price) * IF(t1.order_pay_percentage > 0, t1.order_pay_percentage, %d) / 100) AS SIGNED) earning_price, t2.status waybill_status, t2.courier_name, t2.courier_mobile, t2.actual_fee, t2.desired_fee, t2.waybill_created_at, t2.waybill_finished_at, t5.pay_percentage, t5.old_pay_percentage, t5.market_man_phone, tu.name market_man_name,