fix:设备电话通知和告警,以及设备历史数据,增加设备有效期判断。
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package com.intc.tdengine.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 设备到期信息Mapper(查询MySQL主库)
|
||||
*
|
||||
* @author intc
|
||||
*/
|
||||
@Repository
|
||||
@Mapper
|
||||
public interface DeviceExpireMapper {
|
||||
|
||||
/**
|
||||
* 根据设备序列号查询服务到期时间
|
||||
*
|
||||
* @param serialNum 设备序列号
|
||||
* @return 服务到期时间,设备不存在时返回null
|
||||
*/
|
||||
@DS("master")
|
||||
@InterceptorIgnore(tenantLine = "true")
|
||||
Date getDeadTimeBySerialNum(@Param("serialNum") String serialNum);
|
||||
}
|
||||
Reference in New Issue
Block a user