From 453c6a2e9c9d19df91ab330e94fda7a58d4a2a6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 6 Jan 2021 15:38:29 +0800 Subject: [PATCH] aa --- business/jxstore/report/report.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/business/jxstore/report/report.go b/business/jxstore/report/report.go index c97d2a10c..0a97d46e3 100644 --- a/business/jxstore/report/report.go +++ b/business/jxstore/report/report.go @@ -308,6 +308,7 @@ func getStoreStatusCount(db *dao.DaoDB, cityCodes []int, vendorID, status int) ( FROM store a LEFT JOIN store_map b ON a.id = b.store_id AND b.deleted_at = ? ` + sqlParams = append(sqlParams, utils.DefaultTimeValue) if len(cityCodes) > 0 { sql += " AND a.city_code IN (" + dao.GenQuestionMarks(len(cityCodes)) + ")" sqlParams = append(sqlParams, cityCodes) @@ -322,6 +323,7 @@ func getStoreStatusCount(db *dao.DaoDB, cityCodes []int, vendorID, status int) ( sql += ` WHERE a.deleted_at = ? ` + sqlParams = append(sqlParams, utils.DefaultTimeValue) fmt.Println(sql) fmt.Println(sqlParams) sqlParams = append(sqlParams, utils.DefaultTimeValue, utils.DefaultTimeValue) @@ -348,7 +350,7 @@ func getOrderStateCount(db *dao.DaoDB, cityCodes []int, vendorID, status int) (g } if vendorID != -1 { sql += " AND b.vendor_id = ?" - sqlParams = append(sqlParams, vendorID, status) + sqlParams = append(sqlParams, vendorID) } if status != model.OrderStatusDelivering { sql += " AND b.status = ?"