package com.newfiber.api.pc.dao; import com.baomidou.mybatisplus.plugins.Page; import com.baomidou.dynamic.datasource.annotation.DS; import com.newfiber.api.core.base.BaseDao; import com.newfiber.api.pc.model.zhz.WarnLog; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.util.List; import java.util.Map; @Repository @DS("monitor") public interface WarnLogDao extends BaseDao<WarnLog> { List<WarnLog> listWarnLog(Map<String,Object> map, Page<WarnLog> page); /** 往报警实时表更新数据 */ int updateOrInsert(WarnLog warnLog); /** 往报警日志表插入数据 */ int insertIntoLog(WarnLog warnLog); int deleteWarnTemp(@Param("siteNo")String siteNo, @Param("factorsAscii")String factorsAscii, @Param("warnType") Integer warnType); List<WarnLog> getSiteWarnState(Map<String,Object> map); List<WarnLog> getWarnLogOfPlatform(Map<String,Object> map,Page<WarnLog> page); }