package com.zioinfo.mall.delivery.mapper;

import com.zioinfo.mall.delivery.MallDelivery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DeliveryMapper {
    MallDelivery findById(@Param("id") Long id);
    MallDelivery findByOrderId(@Param("orderId") Long orderId);
    List<MallDelivery> findAll(@Param("status") String status, @Param("limit") int limit);
    int insert(MallDelivery d);
    int update(MallDelivery d);
    int updateStatus(@Param("id") Long id, @Param("status") String status);
}
