diff --git a/business/jxstore/cms/sku.go b/business/jxstore/cms/sku.go index 7dac37180..868f3e57a 100644 --- a/business/jxstore/cms/sku.go +++ b/business/jxstore/cms/sku.go @@ -420,7 +420,7 @@ func GetSkuNames(ctx *jxcontext.Context, keyword string, isBySku bool, params ma if idExd { sql += " AND t2.exd_sku_id <> ''" } else { - sql += " AND t2.exd_sku_id == ''" + sql += " AND t2.exd_sku_id = ''" } } if params["categoryID"] != nil { @@ -579,7 +579,7 @@ func GetSkuNames(ctx *jxcontext.Context, keyword string, isBySku bool, params ma ',"createdAt":"', CONCAT(REPLACE(t2.created_at," ","T"),"+08:00"), '","updatedAt":"', CONCAT(REPLACE(t2.updated_at," ","T"),"+08:00"), '","lastOperator":"', t2.last_operator, '","specQuality":', t2.spec_quality, ',"specUnit":"', t2.spec_unit, '","weight":', t2.weight, ',"categoryID":', t2.category_id, ',"nameID":', t2.name_id, - ', "seq":', t2.seq, ',"exdSkuID":', t2.exd_sku_id + ', "seq":', t2.seq, ',"exdSkuID":', t2.exd_sku_id, "}")), "]") skus_str, CONCAT("[", GROUP_CONCAT(DISTINCT t3.place_code), "]") places_str ` + sql + `