czt
2024-11-26 58c47f9f7fdd6e6991db9b43607e36d2175c35ad
src/main/java/com/fzzy/api/view/repository/Api1306Rep.java
@@ -1,12 +1,13 @@
package com.fzzy.api.view.repository;
import com.fzzy.api.entity.Api1203;
import com.fzzy.api.entity.Api1306;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
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;
@@ -15,4 +16,12 @@
    @Query("from Api1306 where xzzydh=:xzzydh ")
    List<Api1306> getDataById(@Param("xzzydh") String xzzydh);
    @Transactional
    @Modifying
    @Query("update Api1306 set czbz =:czbz where xzzydh=:xzzydh")
    void updateStatus(@Param("xzzydh") String xzzydh, @Param("czbz") String czbz);
    @Query("from Api1306 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ")
    List<Api1306> findPushDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end);
}