package cn.iocoder.mall.order.biz.dao.order;

import cn.iocoder.mall.order.biz.dataobject.OrderLogisticsDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;

/**
 * 订单 item mapper
 *
 * @author Sin
 * @time 2019-03-16 15:09
 */
@Repository
public interface OrderLogisticsMapper {

    /**
     * 插入数据
     *
     * @param orderLogisticsDO
     */
    void insert(OrderLogisticsDO orderLogisticsDO);

    /**
     * 更新 - 根据id
     *
     * @param orderLogisticsDO
     */
    void updateById(OrderLogisticsDO orderLogisticsDO);

    /**
     * 查询 - 根据 ids
     *
     * @param id
     * @return
     */
    OrderLogisticsDO selectById(
        @Param("id") Integer id
    );

    /**
     * 查询 - 根据 ids
     *
     * @param ids
     * @return
     */
    List<OrderLogisticsDO> selectByIds(
        @Param("ids") Collection<Integer> ids
    );

}
