关于饿鲜达商品关注,查询改动

This commit is contained in:
苏尹岚
2020-02-14 15:30:21 +08:00
parent e4bea2e7eb
commit e451901a74
4 changed files with 58 additions and 45 deletions

View File

@@ -415,6 +415,14 @@ func GetSkuNames(ctx *jxcontext.Context, keyword string, isBySku bool, params ma
sqlParams = append(sqlParams, nameIDs)
}
}
if params["isExd"] != nil {
var idExd = params["isExd"].(bool)
if idExd {
sql += " AND t2.exd_sku_id <> ''"
} else {
sql += " AND t2.exd_sku_id == ''"
}
}
if params["categoryID"] != nil {
cat := &model.SkuCategory{}
cat.ID = params["categoryID"].(int)