| | |
| | | import com.gkhy.fourierSpecialGasMonitor.entity.GasFlux; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Repository |
| | | public interface GasCategoryRepository extends JpaRepository<GasCategory,Integer>, JpaSpecificationExecutor<GasCategory> { |
| | | |
| | | GasCategory findByMolecularFormula(String molecularFormula); |
| | | |
| | | @Query(value = "select t from GasCategory t where t.id <= 3") |
| | | List<GasCategory> findGasCategoryForReport(); |
| | | } |