package com.zksy.base.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zksy.base.domain.EquipmentStatus;
import com.zksy.manhole.dto.in.EquipmentStatusInDTO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface EquipmentStatusService extends IService<EquipmentStatus> {

    Page<EquipmentStatus> findByPage(long pageNum, long pageSize, String statusId,String equipmentId,Integer currentStatus,Integer alarmStatus,Integer onlineStatus,Long userId);
    /**
     * 批量新增仪器状态
     * @param entityList
     * @return
     */
    boolean saveBatchWithCheck(List<EquipmentStatus> entityList);

    /**
     * 新增仪器状态
     * @param entity
     * @return
     */
    boolean saveWithCheck(EquipmentStatus entity);

    /**
     * 修改仪器状态
     * @param entity
     * @return
     */
    boolean updateWithCheck(EquipmentStatus entity);

    /**
     * 修改设备状态
     * @param inDTO
     * @return
     */
    boolean updateDeviceStatus(EquipmentStatusInDTO inDTO);
}
