`id`,`tenant_id`,`parent_tenant_id`,`coupon_id`,`coupon_name`,`user_id`,`create_time`,`update_time`,`send_amount`
where 1 = 1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `parent_tenant_id` = #{parentTenantId}
and `coupon_id` = #{couponId}
and `coupon_name` like concat('%', #{couponName},'%')
and `phones` like concat('%', #{phones},'%')
and `create_time` between #{sendTimeStart} and #{sendTimeEnd}
and `update_time` = #{updateTime}
and id in
#{idItem}
order by ${sortColumns}