This commit is contained in:
邹宗楠
2022-11-25 14:16:51 +08:00
parent 21b0927c53
commit 2ba2117f2a

View File

@@ -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)
}