package com.jwipc.supplier.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.supplier.entity.SupplierAgreement;
import com.jwipc.supplier.model.po.SupplierAgreementPO;
import com.jwipc.supplier.model.query.SupplierAgreementQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 注册协议表 Mapper 接口
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-02-02
 */
public interface SupplierAgreementMapper extends BaseMapper<SupplierAgreement> {

    List<SupplierAgreementPO> findPageByQuery(@Param("query") SupplierAgreementQuery query);

    List<SupplierAgreementPO> findPageByQuery(Page<SupplierAgreementPO> dbPage, @Param("query") SupplierAgreementQuery query);
}
