Newer
Older
huludao / src / main / java / com / newfiber / api / pc / dao / DeviceAlarmMapper.java
@新烽开发者 新烽开发者 on 19 Jul 724 bytes init
package com.newfiber.api.pc.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.newfiber.api.pc.model.entity.DeviceAlarm;
import com.newfiber.api.pc.model.entity.DeviceAlarmCountDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

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

@Repository
public interface DeviceAlarmMapper extends BaseMapper<DeviceAlarm> {

    List<DeviceAlarmCountDto> selectAlarmCount(@Param("startTime")Date startTime, @Param("endTime") Date endTime);

    int updateAlarm(@Param("alarmType")Integer alarmType, @Param("siteNo") String siteNo,@Param("deviceType")Integer deviceType);

    boolean updateDeviceById(@Param("id")String id);
}