From 5ce7436e1d241b61dd3069b6b5c8c98d203d8b7e 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 17:25:04 +0800 Subject: [PATCH] aa --- business/model/dao/dao_order.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index deaaab23b..f68ead8f8 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -150,7 +150,7 @@ func GetOrders(db *DaoDB, orderID, userID string, orderType int, cityCodes []int sqlParams = append(sqlParams, orderType) } if len(cityCodes) > 0 { - sql += ` AND a.city_code IN ` + GenQuestionMarks(len(cityCodes)) + `)` + sql += ` AND a.city_code IN (` + GenQuestionMarks(len(cityCodes)) + `)` sqlParams = append(sqlParams, cityCodes) } if fromTime != utils.ZeroTimeValue { @@ -198,7 +198,7 @@ func getFromSql(orderType, status int, alies string, userID string, pop int, cit ` sqlParams = append(sqlParams, orderType, status) if len(orderTypes) > 0 { - sql += ` AND b.order_type IN ` + GenQuestionMarks(len(orderTypes)) + `)` + sql += ` AND b.order_type IN (` + GenQuestionMarks(len(orderTypes)) + `)` sqlParams = append(sqlParams, orderTypes) } if fromTime != utils.ZeroTimeValue {