package com.srs.flowable.mapper;

import java.util.List;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.srs.flowable.domain.EnlistmentReserveApproval;
import org.apache.ibatis.annotations.Param;

/**
 * 保留学籍审批记录Mapper接口
 *
 * @author srs
 * @date 2025-11-13
 */
public interface EnlistmentReserveApprovalMapper extends BaseMapper<EnlistmentReserveApproval> {
    /**
     * 查询保留学籍审批记录
     *
     * @param id 保留学籍审批记录主键
     * @return 保留学籍审批记录
     */
    public EnlistmentReserveApproval selectRtEnlistmentReserveApprovalById(Long id);

    /**
     * 根据学生姓名学号和审批人id查询保留学籍审批记录
     *
     * @param
     * @return 结果
     */
    EnlistmentReserveApproval selectRtEnlistmentReserveApprovalByStuName(@Param("studentName") String studentName, @Param("studentNo") String studentNo, @Param("approverId") Long approverId);

    /**
     * 查询保留学籍审批记录列表
     *
     * @param enlistmentReserveApproval 保留学籍审批记录
     * @return 保留学籍审批记录集合
     */
    List<EnlistmentReserveApproval> selectRtEnlistmentReserveApprovalList(EnlistmentReserveApproval enlistmentReserveApproval);

    /**
     * 新增保留学籍审批记录
     *
     * @param enlistmentReserveApproval 保留学籍审批记录
     * @return 结果
     */
    int insertRtEnlistmentReserveApproval(EnlistmentReserveApproval enlistmentReserveApproval);

    /**
     * 修改保留学籍审批记录
     *
     * @param enlistmentReserveApproval 保留学籍审批记录
     * @return 结果
     */
    int updateRtEnlistmentReserveApproval(EnlistmentReserveApproval enlistmentReserveApproval);

    /**
     * 删除保留学籍审批记录
     *
     * @param id 保留学籍审批记录主键
     * @return 结果
     */
    int deleteRtEnlistmentReserveApprovalById(Long id);

    /**
     * 批量删除保留学籍审批记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteRtEnlistmentReserveApprovalByIds(Long[] ids);
}
