`id`,`tenant_id`,`parent_tenant_id`,`coupon_id`,`user_id`,`send_status`,`send_msg`,`create_time`,`update_time`,
`order_id`,`coupon_order_id`,`msg_model`
where 1 = 1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `parent_tenant_id` = #{parentTenantId}
and `coupon_id` = #{couponId}
and `user_id` = #{userId}
and `send_status` = #{sendStatus}
and `send_msg` = #{sendMsg}
and `order_id` = #{orderId}
and `coupon_order_id` = #{couponOrderId}
and id in
#{idItem}
order by ${sortColumns}
update wx_coupon_send_inject set `send_msg` = 1
where `user_id` in
#{idItem}