From cdcb9718a427bd2a7ddc2afdf709b54b661d9ee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 9 Apr 2020 17:30:02 +0800 Subject: [PATCH] =?UTF-8?q?getskunames=E6=9F=A5=E8=AF=A2=E4=BF=AE=E6=94=B9?= 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 cb7a06845..42397f83d 100644 --- a/business/jxstore/cms/sku.go +++ b/business/jxstore/cms/sku.go @@ -421,7 +421,7 @@ func GetSkuNames(ctx *jxcontext.Context, keyword string, isBySku, isQueryMidPric utils.DefaultTimeValue, } if isQueryMidPrice { - sql += " LEFT JOIN price_refer_snapshot t4 ON t4.city_code = ? AND t4.snapshot_at = ? AND t4.name_id = t1.id" + sql += ` LEFT JOIN price_refer_snapshot t4 ON t4.city_code = ? AND t4.snapshot_at = ? AND t4.name_id = t1.id` sqlParams = append(sqlParams, 0, utils.Time2Date(time.Now().AddDate(0, 0, -1))) } sql += " WHERE t1.deleted_at = ?" @@ -595,7 +595,7 @@ func GetSkuNames(ctx *jxcontext.Context, keyword string, isBySku, isQueryMidPric ` if isQueryMidPrice { sql += `, - t4.mid_unit_pirce` + t4.mid_unit_price` } if isBySku { sql += `,