From b9b20392c158208189c5162a4db0fdcaf3dba5e1 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 8 Jul 2024 11:41:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/bigData/svc/svc_data.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bigData/svc/svc_data.go b/app/bigData/svc/svc_data.go index 91a5103..ac0e5f8 100644 --- a/app/bigData/svc/svc_data.go +++ b/app/bigData/svc/svc_data.go @@ -544,7 +544,7 @@ func NewSortingGoodsCate(c *gin.Context) []map[string]string { } oIds = append(oIds, utils.Int64ToStr(v.Oid)) } - sql := `SELECT SUM(num) as num,SUM(success_num) as success_num,goods_title,sku,goods_id,sku_id FROM order_goods WHERE %s oid in (%s) and goods_type=0 and make_date=%s GROUP BY goods_id,sku_id` + sql := `SELECT SUM(num) as num,SUM(success_num) as success_num,goods_title,sku,goods_id,sku_id FROM order_goods WHERE %s oid in (%s) and goods_type=0 and make_date=%s GROUP BY goods_id,sku_id ORDER BY id asc` str := "" if args["name"] != "" { str = " goods_title like %" + args["name"] + "% and "