package com.huimv.env.dao.repo;

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

public interface XtHkQtsbRepo extends JpaRepository<XtHkQtsb, Integer>, JpaSpecificationExecutor<XtHkQtsb> {

    @Query(nativeQuery = true, value = "select * from xt_hk_qtsb where JQID = ?1 ORDER By ZMXGSJ DESC limit 1")
    XtHkQtsb findByJQIDOrderByZMXGSJ(String jqid);

}