package com.ruoyi.fire.mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.ruoyi.fire.domain.FireFacility;
import org.apache.ibatis.annotations.Param;

/**
 * facilitiesMapper接口
 * 
 * @author Junhua
 * @date 2025-07-15
 */
public interface FireFacilityMapper 
{
    /**
     * 查询facilities
     * 
     * @param id facilities主键
     * @return facilities
     */
    public FireFacility selectFireFacilityById(Long id);

    /**
     * 查询facilities列表
     * 
     * @param fireFacility facilities
     * @return facilities集合
     */
    public List<FireFacility> selectFireFacilityList(FireFacility fireFacility);

    /**
     * 新增facilities
     * 
     * @param fireFacility facilities
     * @return 结果
     */
    public int insertFireFacility(FireFacility fireFacility);

    /**
     * 修改facilities
     * 
     * @param fireFacility facilities
     * @return 结果
     */
    public int updateFireFacility(FireFacility fireFacility);

    /**
     * 删除facilities
     * 
     * @param id facilities主键
     * @return 结果
     */
    public int deleteFireFacilityById(Long id);

    /**
     * 批量删除facilities
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFireFacilityByIds(Long[] ids);

    /**
     * 根据位置ID和设施名称查询（用于校验重复）
     * @param locationId 位置ID
     * @param facilityName 设施名称
     * @return 消防设施对象
     */
    FireFacility selectByLocationAndName(
            @Param("locationId") String locationId,
            @Param("facilityName") String facilityName);

    /**
     * 查询根据id查询设施列表
     */
    List<FireFacility> getDetails(FireFacility fireFacility);

}

