package com.usky.iot.mapper;

import com.usky.common.mybatis.core.CrudMapper;
import com.usky.common.security.utils.SecurityUtils;
import com.usky.iot.domain.DmpDeviceInfo;
import com.usky.iot.domain.DmpDeviceStatus;
import com.usky.iot.service.vo.DmpDataOverviewVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

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


/**
 * <p>
 * 设备状态表 Mapper 接口
 * </p>
 *
 * @author ya
 * @since 2022-10-08
 */
@Repository
public interface DmpDeviceStatusMapper extends CrudMapper<DmpDeviceStatus> {


    List<DmpDataOverviewVO> getDeviceStatusCollect(@Param("startTime") Date startTime,
                                                   @Param("endTime") Date endTime);


    DmpDataOverviewVO getAllCollect(@Param("startTime") Date startTime,
                                             @Param("endTime") Date endTime);


    List<DmpDataOverviewVO> getMonthHyCollect(@Param("startTime") Date startTime,
                                               @Param("endTime") Date endTime);

    DmpDataOverviewVO getAllMonthHyCollect(@Param("startTime") Date startTime,
                                            @Param("endTime") Date endTime);


}
