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 getAlertPage(MesEmAlertPageReqVO pageReqVO); List getAlertRespVOList(List list); void handleAlert(MesEmAlertHandleReqVO handleReqVO); }