puzhibing
2 天以前 ea7595c4c75926f85388574b261b8ba90cf60e0d
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
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<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(Integer infoId);
    
}