puzhibing
2025-06-05 5393e1b43f7148adc93dd5a29f7b6fd4a054eec6
ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/dao/UPExgMsgRealLocationDao.java
@@ -4,10 +4,31 @@
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
 * @author zhibing.pu
 * @Date 2025/3/7 16:38
 */
@Repository
public interface UPExgMsgRealLocationDao extends ElasticsearchRepository<UPExgMsgRealLocation, String> {
   /**
    * 查询有效时间段车辆的定位数据
    *
    * @param vehicleNo
    * @param start
    * @param end
    * @return
    */
   List<UPExgMsgRealLocation> findByVehicleNoAndCreateTimeBetween(String vehicleNo, Long start, Long end);
   /**
    * 获取车辆的最新定位
    *
    * @param vehicleNo
    * @return
    */
   UPExgMsgRealLocation findByVehicleNoOrderByCreateTimeDesc(String vehicleNo);
}