廖井涛
2025-06-11 42154214c5698326710edf336b3148830b646bb2
1
2
3
4
5
6
7
8
9
10
11
12
13
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();
}