package com.ruoyi.frequency.agreement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.frequency.agreement.entity.Agreement;

import java.util.List;

/**
 * 协议Mapper接口
 * 
 * @author liwenlong
 * @date 2023-10-26
 */
public interface AgreementMapper  extends BaseMapper<Agreement>
{
    /**
     * 查询协议
     * 
     * @param id 协议主键
     * @return 协议
     */
    public Agreement selectAgreementById(Long id);

    /**
     * 查询协议列表
     * 
     * @param agreement 协议
     * @return 协议集合
     */
    public List<Agreement> selectAgreementList(Agreement agreement);

    /**
     * 新增协议
     * 
     * @param agreement 协议
     * @return 结果
     */
    public int insertAgreement(Agreement agreement);

    /**
     * 修改协议
     * 
     * @param agreement 协议
     * @return 结果
     */
    public int updateAgreement(Agreement agreement);

}
