|
|
|
@@ -236,6 +236,12 @@ |
|
|
|
<if test="merchantId != null"> |
|
|
|
and cm.merchant_id=#{merchantId} |
|
|
|
</if> |
|
|
|
<if test=" null != merchantIds "> |
|
|
|
and cm.merchant_id in |
|
|
|
<foreach collection="merchantIds" index="index" item="merchantIdsItem" open="(" separator="," close=")"> |
|
|
|
#{merchantIdsItem} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
left join wx_coupon c on cc.coupon_id = c.id |
|
|
|
left join wx_merchant mer on cm.merchant_id = mer.id |
|
|
|
where cc.`target_ad` in (1,2,5,6,7) |
|
|
|
|