package com.srs.dormitory.service;

import java.util.List;

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

/**
 * 外宿申请Service接口
 *
 * @author srs
 * @date 2025-12-05
 */
public interface IDmsOutsideAccommodationApplyService extends IService<DmsOutsideAccommodationApply> {
    /**
     * 查询外宿申请
     *
     * @param id 外宿申请主键
     * @return 外宿申请
     */
    public DmsOutsideAccommodationApply selectDmsOutsideAccommodationApplyById(Long id);

    /**
     * 查询外宿申请
     *
     * @param processInstanceId 外宿申请流程id
     * @return 外宿申请
     */
    public DmsOutsideAccommodationApply selectDmsOutsideAccommodationApplyByProcessInstanceId(String processInstanceId);

    /**
     * 查询外宿申请列表
     *
     * @param dmsOutsideAccommodationApply 外宿申请
     * @return 外宿申请集合
     */
    List<DmsOutsideAccommodationApply> selectDmsOutsideAccommodationApplyList(DmsOutsideAccommodationApply dmsOutsideAccommodationApply);

    /**
     * 新增外宿申请
     *
     * @param dmsOutsideAccommodationApply 外宿申请
     * @return 结果
     */
    int insertDmsOutsideAccommodationApply(DmsOutsideAccommodationApply dmsOutsideAccommodationApply);

    /**
     * 修改外宿申请
     *
     * @param dmsOutsideAccommodationApply 外宿申请
     * @return 结果
     */
    int updateDmsOutsideAccommodationApply(DmsOutsideAccommodationApply dmsOutsideAccommodationApply);

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

    /**
     * 删除外宿申请信息
     *
     * @param id 外宿申请主键
     * @return 结果
     */
    int deleteDmsOutsideAccommodationApplyById(Long id);
}
