getskunames关于饿鲜达参数修改

This commit is contained in:
苏尹岚
2020-02-19 11:38:55 +08:00
parent cadb26b5be
commit 776657ed2b
3 changed files with 7 additions and 6 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"].(bool)
if idExd {
var idExd = params["isExd"].(int)
if idExd == model.DISABLED {
sql += " AND t2.exd_sku_id <> ''"
} else {
} else if idExd == model.NO {
sql += " AND t2.exd_sku_id = ''"
}
} else {

View File

@@ -396,8 +396,9 @@ const (
)
const (
YES = 1 //通用
NO = 0
YES = 1 //通用
NO = 0
DISABLED = -1
)
func IsPurchaseVendorExist(vendorID int) bool {

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 bool false "是否是饿鲜达商品"
// @Param isExd query int false "是否是饿鲜达商品 0为只查非饿鲜达-1为只查饿鲜达1为都查"
// @Param fromStatus query int false "查询起始状态0下架1正常"
// @Param toStatus query int false "查询起始状态0下架1正常"
// @Param offset query int false "门店列表起始序号以0开始缺省为0"