package com.fjhx.sale.mapper.pack;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.fjhx.sale.entity.pack.po.PackShipment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fjhx.sale.entity.pack.vo.PackShipmentVo;
import com.ruoyi.common.utils.wrapper.IWrapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


/**
 * <p>
 * 出货绑定主合同表 Mapper 接口
 * </p>
 *
 * @author
 * @since 2023-04-19
 */
public interface PackShipmentMapper extends BaseMapper<PackShipment> {

    /**
     * 出货绑定主合同表分页
     */
    Page<PackShipmentVo> getPage(@Param("page") Page<Object> page, @Param("ew") IWrapper<PackShipment> wrapper);

    /**
     * 查询出货绑定主合同列表详情
     * @param query
     */
    List<PackShipmentVo> getList(@Param("ew") QueryWrapper<Object> query);

    /**
     * 查询出货-主合同表的产品信息详情列表
     * @param ids（包装明细单ID列表）
     * @return
     */
    List<Map<String, Object>> productDetailList(List<String> ids);
}
