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

import org.springframework.data.jpa.repository.Query;

import com.sw.mes.core.base.BaseDao;
import com.sw.mes.yb.production.entity.EquipmentClickLog;

import java.util.List;

/**
* @Author
* @Description：
* @Date:
* @Modified By:
*/
public interface EquipmentClickLogDao extends BaseDao<EquipmentClickLog, Long>{

	@Query(value = "select * from production_equipment_click_log where equipment_code = ?1 order by id desc limit 1",nativeQuery = true)
	EquipmentClickLog getLastLog(String equimentCode);

}
