package com.yeejoin.amos.fas.business.service.intfc;

import com.yeejoin.amos.fas.business.entity.mybatis.FireEquipmentPointEntity;
import com.yeejoin.amos.fas.core.common.request.CommonPageable;
import com.yeejoin.amos.fas.core.util.CommonResponse;
import org.springframework.data.domain.Page;

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

//import com.yeejoin.amos.fas.dao.entity.FireEquipmentPoint;

public interface IFireEquipPontService {

    /**
     * 保存或者更新风险点
     *
     * @param fireEquipmentPoint
     * @return
     */
//    FireEquipmentPoint savePoint(FireEquipmentPoint fireEquipmentPoint);


    /**
     * 查询单个风险点
     *
     * @param id
     * @return
     */
//    FireEquipmentPoint queryOne(Long id);


    /**
     * 删除单个风险点
     *
     * @return
     * @throws Exception
     */
//    String[] deletePoint(String[] idArray) throws Exception;


    /**
     * 查询指定设备的风险点列表
     *
     * @param fireEqumntId
     * @return
     */
    Page queryByFireEquimt(Long fireEqumntId, String name, CommonPageable pageable);

    CommonResponse queryByMap(Map<String, Object> map);

    CommonResponse batchBindToEquipment(Long deviceId, List<Long> pointIds);

    CommonResponse batchUnbindToEquipment(List<Long> pointIds);

//    CommonResponse save(FireEquipmentPointEntity fireEquipmentPointEntity);

    CommonResponse update(FireEquipmentPointEntity fireEquipmentPointEntity);

    CommonResponse batchDelete(List<Long> ids);

    CommonResponse listByType(Integer type);


//	int countImpEquipment(String[] idArray);


//	String findBindRiskSourceStrByPointIds(String[] idArray);
}
