package com.northglass.repository;
|
|
import java.util.List;
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.Query;
|
|
import com.northglass.constants.StateConstants.IdentifyMachineState;
|
import com.northglass.entity.IdentifyWarn;
|
|
|
public interface IdentifyWarnDao extends JpaRepository<IdentifyWarn, Long>{
|
@Query("select t from IdentifyWarn t where t.state = '" + IdentifyMachineState.WARNING + "' and t.number= ?1")
|
public List<IdentifyWarn> findStateByIdentifyWarn(String number);
|
|
}
|