| | |
| | | package com.fzzy.api.view.repository; |
| | | |
| | | import com.fzzy.api.entity.Api1112; |
| | | import com.fzzy.api.entity.Api1306; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | 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 Api1112Rep extends JpaRepository<Api1112, String> { |
| | |
| | | @Query("update Api1112 set czbz=:czbz where sfzhm=:id ") |
| | | int updateStatus(@Param("id") String id, @Param("czbz") String czbz); |
| | | |
| | | |
| | | @Query("from Api1112 where kqdm=:kqdm") |
| | | List<Api1112> findPushData(@Param("kqdm") String kqdm); |
| | | |
| | | |
| | | @Query("from Api1112 where bizId=:bizId ") |
| | | List<Api1112> getDataByBizId(@Param("bizId") String bizId); |
| | | |
| | | /** |
| | | * |
| | | * @param kqdm |
| | | * @return |
| | | */ |
| | | @Query("from Api1112 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") |
| | | List<Api1112> findPushDataTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); |
| | | } |