改动退回

This commit is contained in:
苏尹岚
2020-02-19 11:41:17 +08:00
parent 776657ed2b
commit 44c77211ec
2 changed files with 4 additions and 4 deletions

View File

@@ -421,10 +421,10 @@ func GetSkuNames(ctx *jxcontext.Context, keyword string, isBySku bool, params ma
}
}
if params["isExd"] != nil {
var idExd = params["isExd"].(int)
if idExd == model.DISABLED {
var idExd = params["isExd"].(bool)
if idExd {
sql += " AND t2.exd_sku_id <> ''"
} else if idExd == model.NO {
} else {
sql += " AND t2.exd_sku_id = ''"
}
} else {

View File

@@ -147,7 +147,7 @@ func (c *SkuController) SyncCategory() {
// @Param skuCategoryID query int false "商品所属类别ID"
// @Param unit query string false "商品单位"
// @Param isSpu query bool false "是否是SPU"
// @Param isExd query int false "是否是饿鲜达商品 0为只查非饿鲜达-1为只查饿鲜达1为都查"
// @Param isExd query bool false "是否是饿鲜达商品"
// @Param fromStatus query int false "查询起始状态0下架1正常"
// @Param toStatus query int false "查询起始状态0下架1正常"
// @Param offset query int false "门店列表起始序号以0开始缺省为0"