`id`,`tenant_id`,`parent_tenant_id`,`coupon_id`,`c_user_id`,`owner_user_id`,`coupon_password_id`,`coupon_password`,`transaction_id`, `amount`,`sale_amount`,`remaining_amount`,`service_fee_amount`,`share_fee_amount`,`remaining_share_fee_amount`, `rate_amount`,`create_date`,`update_date`,`support_transfer` where `tenant_id` = #{tenantId} and `id` = #{id} and `parent_tenant_id` = #{parentTenantId} and `coupon_id` = #{couponId} and `c_user_id` = #{cUserId} and `owner_user_id` = #{ownerUserId} and `transaction_id` = #{transactionId} and `amount` = #{amount} and `sale_amount` = #{saleAmount} and `remaining_amount` = #{remainingAmount} and `service_fee_amount` = #{serviceFeeAmount} and `share_fee_amount` = #{shareFeeAmount} and `remaining_share_fee_amount` = #{remainingShareFeeAmount} and `rate_amount` = #{rateAmount} and `create_date` = #{createDate} and `update_date` = #{updateDate} and `coupon_password_id` = #{couponPasswordId} and `coupon_password_id` like concat('%',#{couponPasswordIdLike},'%') and `coupon_password` like concat('%',#{couponPassword},'%') and `create_date` between #{startdate} and #{enddate} and coupon_password_id in #{cpidItem} and coupon_id in #{cidItem} and id in #{idItem} order by ${sortColumns} update wx_card_info set support_transfer=0,update_date=now() where support_transfer=1 and coupon_id=#{couponId}