package com.srs.dormitory.mapper;

import java.util.List;

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

/**
 * 外宿申请审批记录Mapper接口
 *
 * @author srs
 * @date 2025-12-05
 */
public interface DmsOutsideAccommodationApprovalMapper extends BaseMapper<DmsOutsideAccommodationApproval> {
    /**
     * 查询外宿申请审批记录
     *
     * @param id 外宿申请审批记录主键
     * @return 外宿申请审批记录
     */
    public DmsOutsideAccommodationApproval selectDmsOutsideAccommodationApprovalById(Long id);

    /**
     * 查询外宿申请审批记录列表
     *
     * @param dmsOutsideAccommodationApproval 外宿申请审批记录
     * @return 外宿申请审批记录集合
     */
    List<DmsOutsideAccommodationApproval> selectDmsOutsideAccommodationApprovalList(DmsOutsideAccommodationApproval dmsOutsideAccommodationApproval);

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

    /**
     * 新增外宿申请审批记录
     *
     * @param dmsOutsideAccommodationApproval 外宿申请审批记录
     * @return 结果
     */
    int insertDmsOutsideAccommodationApproval(DmsOutsideAccommodationApproval dmsOutsideAccommodationApproval);

    /**
     * 修改外宿申请审批记录
     *
     * @param dmsOutsideAccommodationApproval 外宿申请审批记录
     * @return 结果
     */
    int updateDmsOutsideAccommodationApproval(DmsOutsideAccommodationApproval dmsOutsideAccommodationApproval);

    /**
     * 删除外宿申请审批记录
     *
     * @param id 外宿申请审批记录主键
     * @return 结果
     */
    int deleteDmsOutsideAccommodationApprovalById(Long id);

    /**
     * 批量删除外宿申请审批记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteDmsOutsideAccommodationApprovalByIds(Long[] ids);
}
