|  |  |  | 
|---|
|  |  |  | 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 Api1111Rep extends JpaRepository<Api1111, String> { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 查询所有的监控点位信息 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param kqdm | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据表单主键更新操作标志状态 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param id | 
|---|
|  |  |  | * @param czbz | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Transactional | 
|---|
|  |  |  | @Modifying | 
|---|
|  |  |  | @Query("update Api1111 set czbz=:czbz where id=:id ") | 
|---|
|  |  |  | @Query("update Api1111 set czbz=:czbz where spjksbid=:id ") | 
|---|
|  |  |  | int updateStatus(@Param("id") String id, @Param("czbz") String czbz); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据监控点位id获取监控信息 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param spjksbid | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | 
|---|
|  |  |  | @Query("from Api1111 where spjksbid=:spjksbid") | 
|---|
|  |  |  | List<Api1111> getApi1111ById(@Param("spjksbid") String spjksbid); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param kqdm | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Query("from Api1111 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") | 
|---|
|  |  |  | List<Api1111> findPushDataTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据业务ID获取监控点位信息 | 
|---|
|  |  |  | * @param bizId | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Query("from Api1111 where bizId=:bizId") | 
|---|
|  |  |  | List<Api1111> getApi1111ByBizId(@Param("bizId") String bizId); | 
|---|
|  |  |  | } | 
|---|