`id`,`tenant_id`,`merchant_id`,`coupon_id`,`coupon_status`,`type`,`title`,`target_ad`,`business`,`begin_time`,`end_time`,`status`,`create_date`,`update_date` where 1 = 1 and `id` = #{id} and `tenant_id` like concat('%', #{tenantId},'%') and `merchant_id` = #{merchantId} and `coupon_id` = #{couponId} and `type` = #{type} and `title` like concat('%', #{title},'%') and `target_ad` = #{targetAd} and `business` like concat('%', #{business},'%') and `begin_time` = #{beginTime} and `end_time` = #{endTime} and `status` = #{status} and `create_date` = #{createDate} and `update_date` = #{updateDate} and id in #{idItem} and coupon_id in #{couponIdsItem} order by ${sortColumns} update wx_coupon_channel set status=#{status} where tenant_id=#{tenantId} and coupon_id=#{couponId}