package com.jwipc.order.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.order.entity.PurchaseOrderBom;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.order.model.po.PurchaseOrderBomPO;
import com.jwipc.order.model.query.PurchaseOrderBomQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 采购订单bom表 Mapper 接口
 * </p>
 *
 * @author Al
 * @since 2024-03-26
 */
public interface PurchaseOrderBomMapper extends BaseMapper<PurchaseOrderBom> {
    List<PurchaseOrderBomPO> findPageByQuery(@Param("query") PurchaseOrderBomQuery query);

    List<PurchaseOrderBomPO> findPageByQuery(Page<PurchaseOrderBom> dbPage, @Param("query") PurchaseOrderBomQuery query);

    PurchaseOrderBomPO getDataById(@Param("id") Long id);
}
