我要为按最新日期过滤的每个table_number获得一行。
如果可能的话,如何使用JPA进行操作,我正在使用Spring Boot。
order_table_id date is_done is_started table_number
-------------- --------------------------- ------- ---------- ------------
2 2019-11-15 21:01:51.1266667 0 1 1
3 2019-11-15 21:02:32.4166667 0 1 2
4 2019-11-15 21:02:39.1333333 0 0 3
5 2019-11-15 21:02:46.2200000 1 1 4
10 2019-11-16 21:02:46.2200000 1 0 4