|  |  |  | 
|---|
|  |  |  | import org.springframework.data.repository.query.Param; | 
|---|
|  |  |  | import org.springframework.transaction.annotation.Transactional; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.Date; | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public interface Api1108Rep extends JpaRepository<Api1108, String> { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | @Query("update Api1108 set czbz=:czbz where id=:id ") | 
|---|
|  |  |  | int updateStatus(@Param("id") String id, @Param("czbz") String czbz); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Query("from Api1108 where kqdm=:kqdm") | 
|---|
|  |  |  | List<Api1108> findPushData(@Param("kqdm") String kqdm); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param kqdm | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Query("from Api1108 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") | 
|---|
|  |  |  | List<Api1108> findPushDataTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Query("from Api1108 where bizId=:bizId ") | 
|---|
|  |  |  | List<Api1108> getDataByBizId(@Param("bizId") String bizId); | 
|---|
|  |  |  | } | 
|---|