修改
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user