From 954480166aad6d24c9e9889906a0edf762f0da2a Mon Sep 17 00:00:00 2001 From: czt <czt18638530771@163.com> Date: 星期一, 10 二月 2025 16:32:56 +0800 Subject: [PATCH] 优化库存同步 --- src/main/java/com/fzzy/async/fzzy35/repository/Fzzy35Sync1109Rep.java | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/fzzy/async/fzzy35/repository/Fzzy35Sync1109Rep.java b/src/main/java/com/fzzy/async/fzzy35/repository/Fzzy35Sync1109Rep.java index 82c12cd..9ff0567 100644 --- a/src/main/java/com/fzzy/async/fzzy35/repository/Fzzy35Sync1109Rep.java +++ b/src/main/java/com/fzzy/async/fzzy35/repository/Fzzy35Sync1109Rep.java @@ -1,6 +1,6 @@ package com.fzzy.async.fzzy35.repository; -import com.fzzy.async.fzzy35.entity.FileInfo; +import com.fzzy.async.fzzy35.entity.Fz35FileInfo; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; @@ -11,7 +11,7 @@ /** * 鏂囦欢淇℃伅 */ -public interface Fzzy35Sync1109Rep extends JpaRepository<FileInfo, String> { +public interface Fzzy35Sync1109Rep extends JpaRepository<Fz35FileInfo, String> { /** * 鏍规嵁淇℃伅鏂囦欢淇℃伅 @@ -20,6 +20,9 @@ * @param end * @return */ - @Query("from FileInfo where createTime >=:start and createTime <:end order by createTime ") - List<FileInfo> listFileInfo(@Param("start") Date start, @Param("end") Date end); + @Query("from Fz35FileInfo where createTime >=:start and createTime <:end order by createTime ") + List<Fz35FileInfo> listFileInfo(@Param("start") Date start, @Param("end") Date end); + + @Query("from Fz35FileInfo where bizId =:bizId order by createTime ") + List<Fz35FileInfo> listFileInfoByBizId(@Param("bizId") String bizId); } -- Gitblit v1.9.3