package com.jwipc.sys.mapper;

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

import java.util.List;

/**
 * <p>
 * 采购组织主数据 Mapper 接口
 * </p>
 *
 * @author zhangjie
 * @since 2024-01-29
 */
public interface PurchaseOrgMapper extends BaseMapper<PurchaseOrg> {

    List<PurchaseOrgPO> findPageByQuery(@Param("query") PurchaseOrgQuery query);

    List<PurchaseOrgPO> findPageByQuery(Page<PurchaseOrg> dbPage,@Param("query") PurchaseOrgQuery query);

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