package com.sw.mes.fb.aio.dao;


import com.sw.mes.core.base.BaseDao;
import com.sw.mes.fb.aio.entity.EapGrindingMachine;
import org.springframework.data.jpa.repository.Query;

/**
* @Author
* @Description：
* @Date:
* @Modified By:
*/
public interface EapGrindingMachineDao extends BaseDao<EapGrindingMachine, Integer> {

    @Query(value = "SELECT * from interface_eap_grinding_machine WHERE sn=?1 order by id desc limit 1", nativeQuery = true)
    EapGrindingMachine findTopByFbSectionNoOrderByIdDesc(String fbSectionNo);
}
