package com.huimv.video.repo;

import com.huimv.video.domain.PublicNetwork;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * @Project : huimv.shiwan
 * @Package : com.huimv.video.repo
 * @Description : TODO
 * @Author : yuxuexuan
 * @Create : 2021/1/6 0006 14:09
 **/
public interface PublicNetworkRepo extends JpaRepository<PublicNetwork,Integer> , JpaSpecificationExecutor<PublicNetwork> {
    @Query(nativeQuery = true,value = "SELECT * FROM public_network  ORDER BY id  DESC   LIMIT  1 ")
    PublicNetwork findTopByIdDesc();
}
