This commit is contained in:
苏尹岚
2021-03-25 16:14:53 +08:00
parent ab52769654
commit fe8ee55d90

View File

@@ -304,6 +304,7 @@ func GetStoresSkusForStore(ctx *jxcontext.Context, storeID int, isFocus, isAct b
sql += `
LEFT JOIN sku_category d ON d.id = a.category_id AND d.deleted_at = ?
`
sqlParams = append(sqlParams, utils.DefaultTimeValue)
if categoryID != 0 {
sql += " AND d.id = ?"
sqlParams = append(sqlParams, categoryID)