From e95de698a8a0619ede3d5b672ebaf24cac321297 Mon Sep 17 00:00:00 2001 From: jiazx0107@163.com <jiazx0107@163.com> Date: 星期二, 31 十月 2023 04:08:38 +0800 Subject: [PATCH] 四川省网关接口相关10 --- src/main/java/com/fzzy/async/fzzy40/repository/Fzzy40Sync1302Rep.java | 14 +++++++++++++- 1 files changed, 13 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 7508ff8..5c2adf2 100644 --- a/src/main/java/com/fzzy/async/fzzy40/repository/Fzzy40Sync1302Rep.java +++ b/src/main/java/com/fzzy/async/fzzy40/repository/Fzzy40Sync1302Rep.java @@ -1,6 +1,5 @@ package com.fzzy.async.fzzy40.repository; -import com.fzzy.async.fzzy35.entity.Fz35Grain; import com.fzzy.async.fzzy40.entity.Fz40Grain; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; @@ -19,10 +18,23 @@ /** * 鏍规嵁鏃堕棿娈垫煡璇㈢伯鎯呮暟鎹� + * * @param start * @param end * @return */ @Query("from Fz40Grain where receiveDate >=:start and receiveDate <:end order by receiveDate ") List<Fz40Grain> findByReceiveDate(@Param("start") Date start, @Param("end") Date end); + + + /** + * 鏍规嵁鏃堕棿娈垫煡璇㈢伯鎯呮暟鎹� + * + * @param depotId + * @param start + * @param end + * @return + */ + @Query("from Fz40Grain where depotId =:depotId and receiveDate >=:start and receiveDate <:end order by receiveDate ") + List<Fz40Grain> findByReceiveDate(@Param("depotId") String depotId, @Param("start") Date start, @Param("end") Date end); } -- Gitblit v1.9.3