package com.northglass.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import java.util.List; import com.northglass.entity.MachineType; public interface MachinesTypeDao extends JpaRepository{ @Query("select t from MachineType t where t.type = 'load' and t.typeName = '上片机' ") public List findMachineDispose(); }