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,