package com.bonus.zlpt.order.mapper;

import java.util.List;
import com.bonus.zlpt.common.core.domain.order.OrderDetails;
import com.bonus.zlpt.common.core.domain.order.dto.FileInfoDto;
import com.bonus.zlpt.common.core.domain.order.vo.OrderDetailsVo;

/**
 * 订单详细Mapper接口
 * 
 * @author xsheng
 * @date 2023-12-01
 */
public interface OrderDetailsMapper 
{
    /**
     * 查询订单详细
     * 
     * @param id 订单详细主键
     * @return 订单详细
     */
    public OrderDetailsVo selectOrderDetailsById(Long id);

    /**
     * 查询订单详细列表
     * 
     * @param orderDetails 订单详细
     * @return 订单详细集合
     */
    public List<OrderDetails> selectOrderDetailsList(OrderDetails orderDetails);

    /**
     * 新增订单详细
     * 
     * @param orderDetails 订单详细
     * @return 结果
     */
    public int insertOrderDetails(OrderDetailsVo orderDetails);

    /**
     * 修改订单详细
     * 
     * @param orderDetails 订单详细
     * @return 结果
     */
    public int updateOrderDetails(OrderDetailsVo orderDetails);

    /**
     * 删除订单详细
     * 
     * @param id 订单详细主键
     * @return 结果
     */
    public int deleteOrderDetailsById(Long id);

    /**
     * 批量删除订单详细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOrderDetailsByIds(Long[] ids);

    public int deleteAttachment(FileInfoDto fileInfoDto);
    public int insertAttachment(FileInfoDto fileInfoDto);
}
