|  |  |  | 
|---|
|  |  |  | 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 Api1310Rep extends JpaRepository<Api1310, String>, JpaSpecificationExecutor<Api1310> { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Query("from Api1310 where zjbgdh=:zjbgdh ") | 
|---|
|  |  |  | List<Api1310> getDataByZjbgdh(@Param("zjbgdh") String zjbgdh); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Query("from Api1310 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") | 
|---|
|  |  |  | List<Api1310> findPushDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Query("from Api1310 where bizId=:bizId ") | 
|---|
|  |  |  | List<Api1310> getDataByBizId(@Param("bizId") String bizId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Query("from Api1310 where hwdm=:hwdm and jylb=:jylb order by zhgxsj") | 
|---|
|  |  |  | List<Api1310> getDataByHwdm(@Param("hwdm") String hwdm,@Param("jylb") String jylb); | 
|---|
|  |  |  | } | 
|---|