aa
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user