| | |
| | | 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<UPWarnMsgAdptInfo, Long> { |
| | | public interface UPWarnMsgAdptInfoDao extends ElasticsearchRepository<UPWarnMsgAdptInfo, String> { |
| | | |
| | | |
| | | /** |
| | | * 根据处理状态查询数据 |
| | | * |
| | | * @param result |
| | | * @return |
| | | */ |
| | | List<UPWarnMsgAdptInfo> findByResultIsAndLevelNotNullAndPushTimeBefore(int result, long pushTime); |
| | | |
| | | |
| | | /** |
| | | * 查询大于给定时间的所有数据 |
| | | * |
| | | * @param createTime |
| | | * @return |
| | | */ |
| | | List<UPWarnMsgAdptInfo> findByCreateTimeAfter(Long createTime); |
| | | |
| | | |
| | | /** |
| | | * 根据信息id查询数据 |
| | | * |
| | | * @param infoId |
| | | * @return |
| | | */ |
| | | UPWarnMsgAdptInfo findByInfoIdIs(String infoId); |
| | | |
| | | } |