`id`,`tenant_id`,`parent_tenant_id`,`coupon_order_id`,`title`,`amount`,`remain_amount`,`from_user`,`to_user`,`status`,`expired_time`,
`create_date`,`update_date`
where 1 = 1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `parent_tenant_id` = #{parentTenantId}
and `coupon_order_id` = #{couponOrderId}
and `from_user` = #{fromUser}
and `to_user` = #{toUser}
and `status` = #{status}
and id in
#{idItem}
order by ${sortColumns}
update wx_card_transfer_info set expired_time = #{expiredTime},update_date=now() where coupon_order_id in
#{sItem}