package com.shkj.wms.mapper;

import com.shkj.wms.bo.BaseMoldBarcodeQueryBo;
import com.shkj.wms.bo.BaseMoldBarcodeQueryPageBo;
import com.shkj.wms.bo.BaseMoldQueryBo;
import com.shkj.wms.domain.BaseMold;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shkj.wms.vo.BaseMoldVo;

import java.util.List;

/**
 * 磨具Mapper接口
 *
 * @author lch
 * @date 2023-06-01
 */
public interface BaseMoldMapper extends BaseMapper<BaseMold> {

    /**
     * 通过条形码查询模具
     *
     * @param bo 薄
     * @return {@code List<BaseMoldVo>}
     */
    List<BaseMoldVo> queryMoldByBarCode(BaseMoldBarcodeQueryBo bo);

    /**
     * 条形码查询股票模具
     *
     * @param bo 薄
     * @return {@link List}<{@link BaseMoldVo}>
     */
    List<BaseMoldVo> queryStockMoldByBarCode(BaseMoldBarcodeQueryBo bo);

    List<BaseMoldVo> queryStockMoldByBarCodePage(BaseMoldBarcodeQueryPageBo bo);
    /**
     * 新增入库计划时，过滤掉已经在库的模具信息
     * @param bo
     * @return
     */
    List<BaseMoldVo> getBaseMoldNotinStockDetail(BaseMoldQueryBo bo);

}
