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 {