package com.aucma.base.service;

import com.aucma.base.domain.ProcessAlert;

import java.util.List;

/**
 * 工艺预警Service接口
 *
 * @author Yinq
 * @date 2025-12-30
 */
public interface IProcessAlertService {
    public ProcessAlert selectProcessAlertByAlertId(Long alertId);
    public List<ProcessAlert> selectProcessAlertList(ProcessAlert processAlert);
    public int insertProcessAlert(ProcessAlert processAlert);
    public int updateProcessAlert(ProcessAlert processAlert);
    public int deleteProcessAlertByAlertIds(Long[] alertIds);
    public int deleteProcessAlertByAlertId(Long alertId);
    
    /**
     * 检查参数阈值并生成预警
     * @return 生成的预警数量
     */
    public int checkThresholdAlerts();

    /**
     * 批量标记预警为已处理
     * @param alertIds 预警ID数组
     * @param handleUser 处理人
     * @return 处理的数量
     */
    public int batchMarkAsProcessed(Long[] alertIds, String handleUser);
}
