Files
hertzbeat/alerter/src/main/java/com/usthe/alert/dao/AlertDao.java

23 lines
541 B
Java
Raw Normal View History

package com.usthe.alert.dao;
import com.usthe.alert.pojo.entity.Alert;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
2021-12-13 14:50:23 +08:00
import java.util.Set;
/**
* Alert 数据库操作
* @author tom
* @date 2021/12/9 10:03
*/
public interface AlertDao extends JpaRepository<Alert, Long>, JpaSpecificationExecutor<Alert> {
2021-12-13 14:50:23 +08:00
/**
* 根据ID列表删除告警
* @param alertIds 告警ID列表
*/
void deleteAlertsByIdIn(Set<Long> alertIds);
}