package com.fzzy.api.view.repository; import com.fzzy.api.entity.Api1404; 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.List; public interface Api1404Rep extends JpaRepository, JpaSpecificationExecutor { @Query("from Api1404 where kqdm=:kqdm and czbz= 'i' ") List findPushData(@Param("kqdm") String kqdm); @Transactional @Modifying @Query("update Api1404 set czbz =:czbz where jhmxdh=:id") void updateStatus(@Param("id") String id, @Param("czbz") String czbz); @Query("from Api1404 where jhmxdh=:jhmxdh ") List getDataByJhmxdh(@Param("jhmxdh") String jhmxdh); }