From bd820f9f54c7a8a743248385936537f15352dd94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 14 Feb 2020 17:04:17 +0800 Subject: [PATCH] =?UTF-8?q?getskunames=E6=96=B0=E5=A2=9E=E5=87=BA=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/sku.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 + `