From f6e7cb255101e53428a36cfb2125a24ad7223fda Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 24 Dec 2019 10:58:06 +0800 Subject: [PATCH] =?UTF-8?q?dao.GetOrders=E4=B8=AD=EF=BC=8C=E5=90=8E?= =?UTF-8?q?=E5=8F=B0=E5=AF=BC=E5=87=BA=E8=AE=A2=E5=8D=95SKU=E7=BB=93?= =?UTF-8?q?=E7=AE=97=E4=BF=A1=E6=81=AF=E6=97=B6=EF=BC=8CSKU=E7=9A=84earnin?= =?UTF-8?q?g=5Fprice=E5=9C=A8=E6=B2=A1=E6=9C=89=E7=BB=93=E7=AE=97=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=97=B6=EF=BC=8C=E5=A1=AB0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 344d0caba..8acf4cf02 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -734,7 +734,7 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat IF(t3.jx_sku_id > 0, t3.jx_sku_id, t3.sku_id) sku_id, t3.count sku_count2, t3.shop_price sku_shop_price, - t3.earning_price sku_earning_price, + IF(t3.store_sub_id = 0, 0, t3.earning_price) sku_earning_price, t3.sale_price sku_sale_price, t3.sku_name` }