package com.sw.mes.yb.deviceCheck.dao;


import com.sw.mes.core.base.BaseDao;
import com.sw.mes.yb.deviceCheck.entity.DeviceCleanRecord;
import org.springframework.data.jpa.repository.Query;

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

    @Query(value = "select * from zhxx_operate_device_clean_record dcr where dcr.lot_no = ?1 order by dcr.id desc limit 1",nativeQuery = true)
    DeviceCleanRecord findByLotNo(String lotNo);
}
