package com.qianwen.mdc.mapper; import java.util.List; import java.util.Map; import org.apache.ibatis.annotations.Param; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.qianwen.mdc.domain.Machine; import com.qianwen.mdc.domain.MachineStatus; import com.qianwen.mdc.dto.MachineMaintainFullDTO; import com.qianwen.mdc.dto.MachineMaintainQueryDTO; import com.qianwen.mdc.dto.machine.MachineFullDTO; import com.qianwen.mdc.dto.machine.MachineQueryDTO; public interface MachineMapper extends BaseMapper { /** * 查询机床数据,并关联最新的状态,车间地图、大屏的基础列表查询 * @param dto * @return */ List listWithStatus(MachineQueryDTO dto); Page queryPage(Page page,@Param("dto")MachineQueryDTO dto); /** * 创建警报历史记录 */ //void addAlarmHistory(MdcMachineAlarmHistory mdcMachineAlarmHistory); /** * 修改机床状态 */ void updateMachineStatus(@Param("machineId") Integer machineId, @Param("state") String state); /** * 根据机床id查询status表信息 */ MachineStatus selectMachineDetail(@Param("machineId") Integer machineId); /** * 查询警报信息 */ List selectAlarmList(@Param("machineId") Integer machineId); /** * 查询monitorport不为null的机床 */ //List queryMachineListPortNotNUll(); List getByWorkshopSection(@Param("workshop") String workshop, @Param("section") String section); List> selectStatusMonitor(); /* //2个查询是机床类型分页使用的,计划不用了,去掉 int selectCountOfMachineAndTypes(@Param("workshop") String workshop, @Param("section") String section, @Param("list") List machines); List> selectMachineAndTypes(@Param("workshop") String workshop, @Param("section") String section, @Param("list") List machines, @Param("machineType") String machineType, @Param("limit") Integer limit, @Param("offset") Integer offset); */ Integer updateMachineAndTypes(@Param("workshop") String workshop, @Param("section") String section, @Param("list") List machines, @Param("machineType") String machineType); /** * 清空指定厂房id的机床plantId字段,yangys * @param plantId 厂房id */ void clearPlantIdInPlant(@Param("plantId")Long plantId); }