| | |
| | | package com.fzzy.api.view.repository; |
| | | |
| | | import com.fzzy.api.entity.Api1206; |
| | | |
| | | 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; |
| | | |
| | | |
| | | public interface Api1206Rep extends JpaRepository<Api1206, String>, JpaSpecificationExecutor<Api1206> { |
| | | |
| | |
| | | @Modifying |
| | | @Query("update Api1206 set czbz =:czbz where ckjsdh=:ckjsdh") |
| | | void updateStatus(@Param("ckjsdh") String ckjsdh, @Param("czbz") String czbz); |
| | | |
| | | @Query("from Api1206 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") |
| | | List<Api1206> findPushDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); |
| | | |
| | | @Query("from Api1206 where ckjsdh=:ckjsdh ") |
| | | List<Api1206> getDataById(@Param("ckjsdh") String ckjsdh); |
| | | |
| | | @Query("from Api1206 where hth=:hth ") |
| | | List<Api1206> getDataByHth(@Param("hth") String hth); |
| | | |
| | | @Query("from Api1206 where hth=:hth and hwdm=:hwdm") |
| | | List<Api1206> getDataByHthAndHwdm(@Param("hth") String hth, @Param("hwdm") String hwdm); |
| | | } |