package com.srs.dormitory.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.srs.dormitory.domain.DmsOutsideAccommodationApproval;

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

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

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

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

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

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

    public int addOrUpdateAccommodationApproval(DmsOutsideAccommodationApproval dmsOutsideAccommodationApproval);
}
