package com.sckw.order.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sckw.order.model.KwoTradeOrderAddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @desc: 交易订单装卸货地址信息mapper
 * @author: yzc
 * @date: 2023-06-25 14:18
 */
@Mapper
public interface KwoTradeOrderAddressMapper extends BaseMapper<KwoTradeOrderAddress> {

    /**
     * @desc: 批量插入
     * @author: yzc
     * @date: 2023-07-13 11:00
     * @Param list:
     * @return: void
     */
    void insertBatch(@Param(value = "list") List<KwoTradeOrderAddress> list);

    List<KwoTradeOrderAddress> findByAddress(@Param("tOrderId") Long tOrderId, @Param("type") Integer type);
}
