From 5f92b2034f84caeab9cb6efc61ecbe22407935b4 Mon Sep 17 00:00:00 2001 From: vince <757871790@qq.com> Date: 星期二, 16 一月 2024 12:14:03 +0800 Subject: [PATCH] 优化主库协议,支持路由 --- src/main/java/com/fzzy/async/fzzy40/repository/Fzzy40Sync1302Rep.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/fzzy/async/fzzy40/repository/Fzzy40Sync1302Rep.java b/src/main/java/com/fzzy/async/fzzy40/repository/Fzzy40Sync1302Rep.java index 5c2adf2..96727be 100644 --- a/src/main/java/com/fzzy/async/fzzy40/repository/Fzzy40Sync1302Rep.java +++ b/src/main/java/com/fzzy/async/fzzy40/repository/Fzzy40Sync1302Rep.java @@ -35,6 +35,6 @@ * @param end * @return */ - @Query("from Fz40Grain where depotId =:depotId and receiveDate >=:start and receiveDate <:end order by receiveDate ") + @Query("from Fz40Grain where depotId =:depotId and receiveDate >=:start and receiveDate <:end order by receiveDate desc ") List<Fz40Grain> findByReceiveDate(@Param("depotId") String depotId, @Param("start") Date start, @Param("end") Date end); } -- Gitblit v1.9.3