czt
2025-07-26 f495e422b1de10b1d1810158fca1c63f9b60fe45
src/main/java/com/fzzy/async/fzzy40/repository/Fzzy40Sync1201Rep.java
@@ -4,6 +4,8 @@
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;
/**
@@ -18,8 +20,6 @@
     * @param end
     * @return
     */
//    @Query("from Fz40InoutContract where deptId=:deptId and updateTime >=:start and updateTime <:end order by updateTime ")
//    List<Fz40InoutContract> listContract(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end);
    @Query("from Fz40InoutContract where deptId=:deptId order by updateTime ")
    List<Fz40InoutContract> listContract(@Param("deptId") String deptId);
    @Query("from Fz40InoutContract where deptId=:deptId and updateTime >=:start and updateTime <:end order by updateTime ")
    List<Fz40InoutContract> listContract(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end);
}