package com.jwipc.sys.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.sys.entity.PurchaseCategory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.sys.model.po.PurchaseCategoryPO;
import com.jwipc.sys.model.query.PurchaseCategoryQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 采购品类表 Mapper 接口
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-02-04
 */
public interface PurchaseCategoryMapper extends BaseMapper<PurchaseCategory> {

    List<PurchaseCategoryPO> findPageByQuery(@Param("query") PurchaseCategoryQuery query);

    List<PurchaseCategoryPO> findPageByQuery(Page<PurchaseCategory> dbPage, @Param("query") PurchaseCategoryQuery query);
}
