@Query(“SELECT sr FROM SignedReceipt sr where sr.cashBox_id =:rk and sr.since between:from and date_add(:from,interval 1 DAY)order by sr.since limit 1”)
def findFirstSingnedReceiptByFrom(@Param(“rk”)rk:CashRegister,@ Param(“from”)from:DateTime)
答案 0 :(得分:0)
用adddate(:from,1)替换date_add(:from,interval 1 DAY)