package com.hzs.ground.postage.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.sale.ext.SaOrderItemsExt;
import com.hzs.common.domain.scm.postage.ThSupplierPostage;
import com.hzs.common.domain.scm.postage.ext.ThSupplierPostageExt;
import com.hzs.ground.postage.param.SupplierPostageParam;
import com.hzs.ground.postage.vo.SupplierPostageVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hzs
 * @since 2024-04-19
 */
public interface ThSupplierPostageMapper extends BaseMapper<ThSupplierPostage> {

    /*
     * @description: 根据订单批量查询供应商邮费
     * @author: sui q
     * @date: 2024/4/19 16:29
     * @param: null null
     **/
    List<ThSupplierPostageExt> querySupplierPostageByOrder(@Param("orderItemsExtList") List<SaOrderItemsExt> orderItemsExtList);


    /**
     * 查询列表
     * @return
     */
    List<SupplierPostageVo> selectByQueryList(SupplierPostageParam supplierPostageParam);

    /**
     * 根据id 查询
     * @param pkSupplierPostage
     * @return
     */
    SupplierPostageVo selectByPkId(@Param("pkSupplierPostage") Integer pkSupplierPostage);
}
