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