同步错误返回

This commit is contained in:
苏尹岚
2020-01-09 17:53:13 +08:00
parent 08be46ca02
commit e430c8ae59

View File

@@ -299,10 +299,9 @@ func GetStoreCategories(db *DaoDB, vendorID, storeID int, skuIDs []int, level in
SELECT DISTINCT b.category_id
FROM sku a
JOIN sku_name b ON a.name_id = b.id AND b.deleted_at = ?
WHERE 1=1
AND a.id IN (` + GenQuestionMarks(len(skuIDs)) + `)
WHERE a.id IN (` + GenQuestionMarks(len(skuIDs)) + `)
AND a.deleted_at = ?
)t6 ON t6.category_id = t4.id
) t6 ON t6.category_id = t4.id
`
sqlParams = append(sqlParams, utils.DefaultTimeValue, skuIDs, utils.DefaultTimeValue)
}