66 lines
1.4 KiB
Java
66 lines
1.4 KiB
Java
package com.muyu.warn.service;
|
|
|
|
import java.util.List;
|
|
|
|
import com.muyu.warn.domain.Resp.StrategyRespList;
|
|
import com.muyu.warn.domain.Resp.WarnStrategyList;
|
|
import com.muyu.warn.domain.WarnStrategy;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
|
|
/**
|
|
* 预警策略Service接口
|
|
*
|
|
* @author muyu
|
|
* @date 2024-09-20
|
|
*/
|
|
public interface IWarnStrategyService extends IService<WarnStrategy> {
|
|
/**
|
|
* 精确查询预警策略
|
|
*
|
|
* @param id 预警策略主键
|
|
* @return 预警策略
|
|
*/
|
|
public WarnStrategy selectWarnStrategyById(Long id);
|
|
|
|
/**
|
|
* 查询预警策略列表
|
|
*
|
|
* @param warnStrategy 预警策略
|
|
* @return 预警策略集合
|
|
*/
|
|
public List<WarnStrategy> selectWarnStrategyList(WarnStrategy warnStrategy);
|
|
|
|
/**
|
|
* 判断 预警策略 id是否唯一
|
|
* @param warnStrategy 预警策略
|
|
* @return 结果
|
|
*/
|
|
Boolean checkIdUnique(WarnStrategy warnStrategy);
|
|
|
|
|
|
/**
|
|
* 双表联查
|
|
* @param warnStrategy
|
|
* @return
|
|
*/
|
|
List<WarnStrategyList> strategyList(WarnStrategy warnStrategy);
|
|
|
|
/**
|
|
* 三表联查列表
|
|
* @param warnStrategy
|
|
* @return
|
|
*/
|
|
List<StrategyRespList> strategyRespList(WarnStrategy warnStrategy);
|
|
|
|
/**
|
|
* 根据报文id查询列表
|
|
* @param templateId
|
|
* @return
|
|
*/
|
|
List<WarnStrategy> byTemplateId(Long templateId);
|
|
|
|
WarnStrategy findById(Long id);
|
|
|
|
|
|
}
|