@@ -80,8 +80,8 @@
from `user_coupon` ucn
<where>
ucn.used = 0
- and cn.merchant_id in
- <foreach collection="merchantIds" item="id" open="(" close=")" separator=",">
+ and ucn.merchant_id in
+ <foreach collection="param.merchantIds" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
<if test="param.type != null">