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.entity.MachineDispose;
|
|
public interface MachineDisposeDao extends JpaRepository<MachineDispose, Long>{
|
//查询对应机器的 对应字
|
@Query("select t from MachineDispose t where t.machineType.id = 1 and t.plcFontType = '请求字' and t.plcFontValue = '0001' and t.mesFontType = '发送字' and t.mesFontValue = '0000' and t.logic='任务请求' and t.remarks='开始发送任务'")
|
public List<MachineDispose> findMachineDispose();
|
}
|