| | |
| | | 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 Api1212Rep extends JpaRepository<Api1212, String>, JpaSpecificationExecutor<Api1212> { |
| | | |
| | |
| | | |
| | | @Query("from Api1212 where id=:id ") |
| | | List<Api1212> getDataById(@Param("id") String id); |
| | | |
| | | @Query("from Api1212 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") |
| | | List<Api1212> findPushDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); |
| | | } |