spring - Spring JPQL 无法比较 java LocalDateTime - 返回空列表
问题描述
我在这里得到了一些 JPQL 的代码。此查询返回空列表。知道为什么它不起作用吗?在数据库中,我得到了匹配/填充查询的东西。
@Query("select rB from RoomBookingEntity rB where ?1 between rB.dateStart and rB.dateEnd and ?2 between rB.dateStart and rB.dateEnd")
List<RoomBookingEntity> getAllBookingsWithIn(@Param("dateStartParam") LocalDateTime dateStartParam, @Param("dateEndParam") LocalDateTime dateEndParam);
文件链接:
https://github.com/.../repository/RoomBookingRepository.java
回购链接:
解决方案
推荐阅读
- python - 使用 Flask、CSV 文件和 HTML 表单的逻辑错误
- jenkins - 在 Jenkins CLI 中添加作业
- linux - 如何在 Linux 中添加具有 VID/PID 的设备
- node.js - 在 nodejs 中有效地跟踪文件
- javascript - 无法从使用 Javascript/Jquery 的 if 语句返回
- python - Python Vlookup to return one value only - similar to excel
- python - Python 3: Using subprocess to take photo via gphoto2 but can't set custom filename doing it.
- c# - 如何阻止语言翻译 Api 在机器人框架中翻译表单流输入
- ios - 如何在不点击按钮的情况下调用 UIButton 操作方法?
- c# - 桌面应用程序图标上的屏蔽图像