From ada56d6ab0c192237553ac85a3b756967f7dcf6f 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, 18 Aug 2020 15:10:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/model/dao/dao_order.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index ea744df7b..bbf21e4a4 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -1370,6 +1370,8 @@ func GetSupplySupportStoreSkus(db *DaoDB, fromDate, toDate time.Time, fromStoreI JOIN store_sku_bind d ON d.store_id = ? AND d.sku_id = c.sku_id AND d.deleted_at = ? JOIN sku e ON e.id = d.sku_id JOIN sku_name f ON f.id = e.name_id + WHERE status <> ? + AND stock <> ? ORDER BY c.count desc ` sqlParams := []interface{}{ @@ -1379,6 +1381,8 @@ func GetSupplySupportStoreSkus(db *DaoDB, fromDate, toDate time.Time, fromStoreI 6039481, //葱姜蒜 fromStoreID, storeID, utils.DefaultTimeValue, + model.StoreSkuBindStatusDontSale, + 0, } if err = GetRows(db, &getSupplySupportStoreSkusResult, sql, sqlParams); err == nil { return getSupplySupportStoreSkusResult, err