46 lines
918 B
Java
46 lines
918 B
Java
package com.muyu.service;
|
|
|
|
import java.util.List;
|
|
import com.muyu.domain.WarnRule;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
import com.muyu.domain.resp.WarnRuleResp;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
/**
|
|
* 预警规则Service接口
|
|
*
|
|
* @author muyu
|
|
* @date 2024-09-20
|
|
*/
|
|
public interface WarnRuleService extends IService<WarnRule> {
|
|
/**
|
|
* 精确查询预警规则
|
|
*
|
|
* @param id 预警规则主键
|
|
* @return 预警规则
|
|
*/
|
|
public WarnRule selectWarnRuleById(Long id);
|
|
|
|
/**
|
|
* 查询预警规则列表
|
|
* @return 预警规则集合
|
|
*/
|
|
List<WarnRuleResp> selectWarnRuleRespList();
|
|
|
|
|
|
/**
|
|
* 添加
|
|
*/
|
|
Integer addWarnRule(WarnRule warnRule);
|
|
|
|
|
|
/**
|
|
* 修改
|
|
*/
|
|
Integer updWarnRule(WarnRule warnRule);
|
|
|
|
//根据策略ID查规则
|
|
List<WarnRuleResp> selectListByStrategyId(Long strategyId);
|
|
|
|
}
|