package com.aegis.resource.requisition.mapper;

import java.util.List;
import com.aegis.resource.requisition.domain.RequisitionCompensation;

/**
 * 补偿记录Mapper接口
 * 
 * @author aegis
 */
public interface ResourceRequisitionCompensationMapper {

    /**
     * 查询补偿记录列表
     * 
     * @param compensation 补偿信息
     * @return 补偿集合
     */
    public List<RequisitionCompensation> selectRequisitionCompensationList(RequisitionCompensation compensation);

    /**
     * 根据征用ID查询补偿记录列表
     * 
     * @param requisitionId 征用ID
     * @return 补偿集合
     */
    public List<RequisitionCompensation> selectRequisitionCompensationListByRequisitionId(Long requisitionId);

    /**
     * 根据ID查询补偿记录
     * 
     * @param id 补偿ID
     * @return 补偿信息
     */
    public RequisitionCompensation selectRequisitionCompensationById(Long id);

    /**
     * 新增补偿记录
     * 
     * @param compensation 补偿信息
     * @return 结果
     */
    public int insertRequisitionCompensation(RequisitionCompensation compensation);

    /**
     * 修改补偿记录
     * 
     * @param compensation 补偿信息
     * @return 结果
     */
    public int updateRequisitionCompensation(RequisitionCompensation compensation);

    /**
     * 删除补偿记录
     * 
     * @param id 补偿ID
     * @return 结果
     */
    public int deleteRequisitionCompensationById(Long id);

    /**
     * 根据征用ID删除所有补偿记录
     * 
     * @param requisitionId 征用ID
     * @return 结果
     */
    public int deleteRequisitionCompensationByRequisitionId(Long requisitionId);
}