package com.zioinfo.mes.equipment.mapper;

import com.zioinfo.mes.equipment.MesEquipment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EquipmentMapper {
    List<MesEquipment> findAll(@Param("status") String status, @Param("runStatus") String runStatus);
    MesEquipment findById(@Param("id") Long id);
    MesEquipment findByCode(@Param("equipmentCode") String equipmentCode);
    int countByCode(@Param("equipmentCode") String equipmentCode, @Param("excludeId") Long excludeId);
    int insert(MesEquipment e);
    int update(MesEquipment e);
    int updateRunStatus(@Param("id") Long id, @Param("runStatus") String runStatus);
    int delete(@Param("id") Long id);
}
