From b51b4406e1d0d0ab897a8a874e1f7e0f5e900236 Mon Sep 17 00:00:00 2001 From: CZT <czt18638530771@163.com> Date: 星期五, 20 十月 2023 17:50:01 +0800 Subject: [PATCH] 调整上海接口-船运分车上传时的照片同步 --- src/main/java/com/fzzy/async/fzzy40/repository/Fzzy40Sync1202Rep.java | 22 +++++++++++++++++++++- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/fzzy/async/fzzy40/repository/Fzzy40Sync1202Rep.java b/src/main/java/com/fzzy/async/fzzy40/repository/Fzzy40Sync1202Rep.java index f2bebaf..1c579e2 100644 --- a/src/main/java/com/fzzy/async/fzzy40/repository/Fzzy40Sync1202Rep.java +++ b/src/main/java/com/fzzy/async/fzzy40/repository/Fzzy40Sync1202Rep.java @@ -4,6 +4,7 @@ import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; + import java.util.Date; import java.util.List; @@ -17,21 +18,40 @@ /** * 鏍规嵁淇℃伅鑾峰彇鍑哄叆搴撲俊鎭� + * * @param deptId * @param type * @param start * @param end * @return */ - @Query("from Fz40InoutRecord where deptId=:deptId and type=:type and updateTime >=:start and updateTime <:end order by id ") + @Query("from Fz40InoutRecord where deptId=:deptId and type=:type and updateTime >=:start and updateTime <=:end order by id ") List<Fz40InoutRecord> listInoutRecord(@Param("deptId") String deptId, @Param("type") String type, @Param("start") Date start, @Param("end") Date end); /** * 鏍规嵁id鑾峰彇绮鍑哄叆搴撲俊鎭� + * * @param id * @return */ @Query("from Fz40InoutRecord where id=:id order by updateTime ") List<Fz40InoutRecord> listInoutRecordById(@Param("id") String id); + + /** + * 鏍规嵁淇℃伅鑾峰彇鍑哄叆搴撲俊鎭� + * + * @param deptId + * @param start + * @param end + * @return + */ + @Query("from Fz40InoutRecord where deptId=:deptId and updateTime >=:start and updateTime <:end order by id ") + List<Fz40InoutRecord> listInoutRecord(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); + + + @Query("from Fz40InoutRecord where deptId=:deptId and (type=:type1 or type=:type2) and updateTime >=:start and updateTime <=:end order by id ") + List<Fz40InoutRecord> listInAndOutRecord(@Param("deptId") String deptId, @Param("type1") String type1, @Param("type2") String type2, @Param("start") Date start, @Param("end") Date end); + + } -- Gitblit v1.9.3