From 5c94299f6c8bd0b5a32fc6d38f92ba2035bddfab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 5 Nov 2019 18:35:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E6=9F=A5=E8=AF=A2=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/model/dao/dao_order.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index 0f601a198..7ab3f68e8 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -596,8 +596,6 @@ func GetOrdersByCreateTime(db *DaoDB, fromDateParm, toDateParm time.Time, vendor FROM goods_order a JOIN order_sku b ON a.vendor_order_id = b.vendor_order_id WHERE a.order_created_at BETWEEN ? and ? - AND b.earning_price <> 0 - AND b.store_sub_id = 0 ` sqlParams := []interface{}{ fromDateParm, @@ -620,7 +618,6 @@ func UpdateOrderSkuEariningPrice(db *DaoDB, actStoreSku2 *model.ActStoreSku2, fr AND tt1.order_created_at BETWEEN ? and ? SET t1.earning_price = ?,t1.store_sub_id = ? WHERE t1.store_sub_id = 0 - AND t1.earning_price <> 0 ` sqlParams := []interface{}{ actStoreSku2.VendorID,