CZT
2023-09-23 4e15712a9b23aaf1f28d1aaecc2eb55f852e93d8
src/main/java/com/fzzy/api/view/repository/Api1302Rep.java
@@ -7,9 +7,8 @@
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
import java.util.List;
public interface Api1302Rep extends JpaRepository<Api1302, String>, JpaSpecificationExecutor<Api1302> {
@@ -21,4 +20,10 @@
    @Modifying
    @Query("update Api1302 set czbz =:czbz where wsdjcdh=:wsdjcdh")
    void updateStatus(@Param("wsdjcdh") String wsdjcdh, @Param("czbz") String czbz);
    @Query("from Api1302 where wsdjcdh=:wsdjcdh ")
    List<Api1302> getDataByWsdjcdh(@Param("wsdjcdh") String wsdjcdh);
    @Query("from Api1302 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ")
    List<Api1302> findPushDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end);
}