1
This commit is contained in:
@@ -695,7 +695,7 @@ func QueryRechargeRecommend(userId []string, mobile, orderId string, page, pageS
|
||||
return result, 1, nil
|
||||
}
|
||||
|
||||
if userId != nil {
|
||||
if userId != nil && len(userId) > 0 {
|
||||
sql += ` AND o.user_id IN (` + GenQuestionMarks(len(userId)) + `)`
|
||||
sqlParams = append(sqlParams, userId)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user