CZT
2023-07-18 254da24705ba4daa8bf289a2c10b912fb8c53ad2
src/main/java/com/fzzy/async/fzzy35/repository/Fzzy35Sync1303Rep.java
@@ -1,6 +1,6 @@
package com.fzzy.async.fzzy35.repository;
import com.fzzy.async.fzzy35.entity.Pest;
import com.fzzy.async.fzzy35.entity.Fz35Pest;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
@@ -14,7 +14,7 @@
 * @author chen
 * @date 2022-09-08 09:51
 */
public interface Fzzy35Sync1303Rep extends JpaRepository<Pest, String> {
public interface Fzzy35Sync1303Rep extends JpaRepository<Fz35Pest, String> {
    /**
     * 根据时间段查询粮情数据
@@ -23,6 +23,6 @@
     * @param end
     * @return
     */
    @Query("from Pest where receiveDate >=:start and receiveDate <:end order by receiveDate ")
    List<Pest> findPestByReceiveDate(@Param("start") Date start, @Param("end") Date end);
    @Query("from Fz35Pest where receiveDate >=:start and receiveDate <:end order by receiveDate ")
    List<Fz35Pest> findPestByReceiveDate(@Param("start") Date start, @Param("end") Date end);
}