`id`,`tenant_id`,`parent_tenant_id`,`merchant_id`,`b_tenant_id`,`sharing_order_id`,`sharing_receiver_id`,`pay_amount`,`is_private`,`update_time`,`create_time`,`sharing_status`,`finish_time`,`failed_reason`,`description`
where 1 = 1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `parent_tenant_id` = #{parentTenantId}
and `merchant_id` = #{merchantId}
and `b_tenant_id` = #{bTenantId}
and `sharing_order_id` = #{sharingOrderId}
and `sharing_receiver_id` = #{sharingReceiverId}
and `pay_amount` = #{payAmount}
and `is_private` = #{isPrivate}
and `update_time` = #{updateTime}
and `create_time` = #{createTime}
and `sharing_status` = #{sharingStatus}
and `finish_time` like concat('%', #{finishTime},'%')
and `failed_reason` like concat('%', #{failedReason},'%')
and id in
#{idItem}
order by ${sortColumns}
delete from wx_profit_sharing_result
where `tenant_id` = #{tenantId}
and `sharing_order_id` = #{sharingOrderId}