Newer
Older
huludao / src / main / java / com / newfiber / modules / gate / dao / MonitorDao.java
package com.newfiber.modules.gate.dao;

import com.newfiber.modules.gate.entity.DownLinkTask;
import com.newfiber.modules.gate.entity.GateInfo;
import com.newfiber.modules.gate.entity.PointInfo;
import com.newfiber.modules.inspection.entity.PlcSiteInfoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

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

@Mapper
public interface MonitorDao {

    List<GateInfo> querySiteList();

    List<Map<String, Object>> queryLevel(@Param("stCode") String stCode, @Param("beginTime")String beginTime,
                                         @Param("endTime")String endTime, @Param("orderNum")Integer orderNum);

    List<Map<String, Object>> queryStatusPoints(@Param("stCode") String stCode);

    Map<String, Object> queryMonitorData(@Param("stCode") String stCode,@Param("searchPoints") List<String> searchPoints);

    List<Map<String, Object>> queryDownPoints(@Param("stCode")String stCode);

    List<Map<String, Object>> queryGateStatus(@Param("stCode")String stCode);

    void updateStatus(@Param("stCode")String stCode, @Param("deviceCode")String deviceCode,  @Param("status")int status);

    PointInfo queryPoint(@Param("stCode")String stCode, @Param("pointKey")String pointKey);

    void insertTask( @Param("task")DownLinkTask task);

    List<Map<String, Object>> queryStatus(String stCode);

    Map<String, Object> getCurrentLevel(String stCode);

    PlcSiteInfoEntity selectByCode(@Param("stCode") String stCode);
}