|  |  |  | 
|---|
|  |  |  | package com.fzzy.api.view.repository; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.fzzy.api.entity.Api1207; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | @Modifying | 
|---|
|  |  |  | @Query("update Api1207 set czbz =:czbz where dcdh=:id") | 
|---|
|  |  |  | void updateStatus(@Param("id") String id, @Param("czbz") String czbz); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Query("from Api1207 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") | 
|---|
|  |  |  | List<Api1207> findPushDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Query("from Api1207 where dcdh=:dcdh ") | 
|---|
|  |  |  | List<Api1207> getDataByDcdh(@Param("dcdh") String dcdh); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Query("from Api1207 where dcdh=:dcdh ") | 
|---|
|  |  |  | List<Api1207> getDataById(@Param("dcdh") String dcdh); | 
|---|
|  |  |  | } | 
|---|