|  |  |  | 
|---|
|  |  |  | package com.fzzy.api.view.repository; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.fzzy.api.entity.Api1109; | 
|---|
|  |  |  | import com.fzzy.api.entity.Api1202; | 
|---|
|  |  |  | 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 Api1109Rep extends JpaRepository<Api1109, String> , JpaSpecificationExecutor<Api1109> { | 
|---|
|  |  |  | public interface Api1109Rep extends JpaRepository<Api1109, String>, JpaSpecificationExecutor<Api1109> { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Query("from Api1109 where kqdm=:kqdm and czbz= 'i' ") | 
|---|
|  |  |  | List<Api1109> findPushData(@Param("kqdm") String kqdm); | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Query("from Api1109 where bizId=:bizId ") | 
|---|
|  |  |  | List<Api1109> getDataByBizId(@Param("bizId") String bizId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Query("from Api1109 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") | 
|---|
|  |  |  | List<Api1109> findPushDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Query("from Api1109 where fileStorageId=:fileStorageId ") | 
|---|
|  |  |  | List<Api1109> getDataByFileId(@Param("fileStorageId") String fileStorageId); | 
|---|
|  |  |  | } | 
|---|