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.EquipmentWorkHoursLog;

/**
* @Author 李儒
* @Description
* @Date:
* @Modified By:
*/
public interface EquipmentWorkHoursLogDao extends BaseDao<EquipmentWorkHoursLog, Long>{

	@Query(value = "select * from production_equipment_work_hours_log where equipment_code=?1 order by id desc limit 1",nativeQuery = true)
	EquipmentWorkHoursLog getByEquipmentCodeLastOperation(String equipmentCode);

}
