package com.ruoyi.dataInterchange.dao; import com.ruoyi.dataInterchange.model.UPWarnMsgAdptInfo; import org.springframework.data.elasticsearch.repository.ElasticsearchRepository; import org.springframework.stereotype.Repository; import java.util.List; /** * @author zhibing.pu * @Date 2025/3/7 19:30 */ @Repository public interface UPWarnMsgAdptInfoDao extends ElasticsearchRepository { /** * 根据处理状态查询数据 * * @param result * @return */ List findByResultIsAndLevelNotNullAndPushTimeBefore(int result, long pushTime); /** * 查询大于给定时间的所有数据 * * @param createTime * @return */ List findByCreateTimeAfter(Long createTime); /** * 根据信息id查询数据 * * @param infoId * @return */ UPWarnMsgAdptInfo findByInfoIdIs(Integer infoId); }