From 35b0088fa28dab8a28758dcbcc056620c1ea5e2c Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期五, 30 五月 2025 11:02:35 +0800 Subject: [PATCH] 修改公交公司的事件订阅功能 --- ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/dao/UPWarnMsgAdptInfoDao.java | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/dao/UPWarnMsgAdptInfoDao.java b/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/dao/UPWarnMsgAdptInfoDao.java index a106175..a42756c 100644 --- a/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/dao/UPWarnMsgAdptInfoDao.java +++ b/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/dao/UPWarnMsgAdptInfoDao.java @@ -11,7 +11,7 @@ * @Date 2025/3/7 19:30 */ @Repository -public interface UPWarnMsgAdptInfoDao extends ElasticsearchRepository<UPWarnMsgAdptInfo, Long> { +public interface UPWarnMsgAdptInfoDao extends ElasticsearchRepository<UPWarnMsgAdptInfo, String> { /** @@ -20,5 +20,24 @@ * @param result * @return */ - List<UPWarnMsgAdptInfo> findByResultIs(int result); + List<UPWarnMsgAdptInfo> findByResultIsAndLevelNotNullAndPushTimeBefore(int result, long pushTime); + + + /** + * 查询大于给定时间的所有数据 + * + * @param createTime + * @return + */ + List<UPWarnMsgAdptInfo> findByCreateTimeAfter(Long createTime); + + + /** + * 根据信息id查询数据 + * + * @param infoId + * @return + */ + UPWarnMsgAdptInfo findByInfoIdIs(String infoId); + } -- Gitblit v1.7.1