package com.sckw.usual.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sckw.usual.entity.KwOrderUsualLandTransportAddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface KwOrderUsualLandTransportAddressMapper extends BaseMapper<KwOrderUsualLandTransportAddress> {

    /**
     * @param lOrderId 物流订单id
     * @param addressType 地址类型（1装货地址、2卸货地址）
     * @desc 查询物流运单装卸货地址信息
     * @author zk
     * @date 2023/7/20
     **/
    List<KwOrderUsualLandTransportAddress> findByAddress(@Param("lOrderId") Long lOrderId, @Param("addressType") Integer addressType);
    List<KwOrderUsualLandTransportAddress> findByAddressByOrderId(@Param("lOrderId") Long lOrderId);

    List<KwOrderUsualLandTransportAddress> findByAddressByOrderIds(List<Long> ids);

}
