From 322a298223754ac7c109e7542acbfb69913e1fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 24 Dec 2019 11:41:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=85=E9=94=80=E5=95=86=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/model/dao/store_sku.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/model/dao/store_sku.go b/business/model/dao/store_sku.go index b52bd0768..2a76b8296 100644 --- a/business/model/dao/store_sku.go +++ b/business/model/dao/store_sku.go @@ -1076,7 +1076,7 @@ func GetTopSkusByCityCode(db *DaoDB, cityCode int, orderCreate time.Time) (skuNa sql := ` SELECT t1.*, t2.* FROM - (SELECT SUM(b.count) count, c.name_id, e.name city_name, d.city_code, + (SELECT SUM(b.count) count, c.name_id, e.name city_name, d.city_code FROM goods_order a JOIN order_sku b ON a.vendor_order_id = b.vendor_order_id AND a.vendor_id = b.vendor_id JOIN sku c ON b.sku_id = c.id AND c.deleted_at = ?