云
2026-10-25 d54fbc9d4f8981fa0f7f613b33a28a8cd4f764ea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package cn.iocoder.yudao.module.mes.service.em.alert;
 
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.mes.controller.admin.em.alert.vo.MesEmAlertHandleReqVO;
import cn.iocoder.yudao.module.mes.controller.admin.em.alert.vo.MesEmAlertPageReqVO;
import cn.iocoder.yudao.module.mes.controller.admin.em.alert.vo.MesEmAlertRespVO;
import cn.iocoder.yudao.module.mes.dal.dataobject.em.alert.MesEmAlertDO;
import cn.iocoder.yudao.module.mes.dal.dataobject.em.record.MesEmRecordDO;
 
import java.time.LocalDate;
import java.util.List;
 
/**
 * MES 能耗预警 Service
 *
 * @author 超级管理员
 */
public interface MesEmAlertService {
 
    /**
     * 根据一条抄表记录检测并生成预警
     */
    void checkRecord(MesEmRecordDO record);
 
    /**
     * 重新检测指定日期区间的抄表记录
     *
     * @return 检测的记录数
     */
    int checkRange(LocalDate begin, LocalDate end);
 
    /**
     * 删除某个计量点某天的环比/同比/跑冒滴漏预警(抄表记录删除时调用)
     */
    void deleteMeterAlerts(Long meterId, LocalDate alertDate);
 
    MesEmAlertDO getAlert(Long id);
 
    PageResult<MesEmAlertDO> getAlertPage(MesEmAlertPageReqVO pageReqVO);
 
    List<MesEmAlertRespVO> getAlertRespVOList(List<MesEmAlertDO> list);
 
    void handleAlert(MesEmAlertHandleReqVO handleReqVO);
 
}