This commit is contained in:
苏尹岚
2021-01-06 17:25:04 +08:00
parent f6a1edea5b
commit 5ce7436e1d

View File

@@ -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 {