This commit is contained in:
苏尹岚
2020-08-18 15:10:08 +08:00
parent 73220fcf90
commit ada56d6ab0

View File

@@ -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