package com.huimv.env.dao.repo;

import com.huimv.env.dao.entity.XtDgdskz;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

public interface XtDgdskzRepo extends JpaRepository<XtDgdskz, Integer>, JpaSpecificationExecutor<XtDgdskz> {

    @Query(nativeQuery = true, value = "select * from xt_dgdskz where JQID = ?1 order by XGSJ desc limit 1")
    XtDgdskz findByJQIDOrderByXGSJ(String jqid);
}