|
@@ -544,7 +544,7 @@ func NewSortingGoodsCate(c *gin.Context) []map[string]string { |
|
|
} |
|
|
} |
|
|
oIds = append(oIds, utils.Int64ToStr(v.Oid)) |
|
|
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 := "" |
|
|
str := "" |
|
|
if args["name"] != "" { |
|
|
if args["name"] != "" { |
|
|
str = " goods_title like %" + args["name"] + "% and " |
|
|
str = " goods_title like %" + args["name"] + "% and " |
|
|