package com.cmvr.resource.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.cmvr.resource.domain.ResourceRobot; import java.util.List; import java.util.Date; import org.apache.ibatis.annotations.Param; public interface ResourceRobotMapper extends BaseMapper { List selectResourceRobots(ResourceRobot query); ResourceRobot selectByRobotIdentity(String robotId); ResourceRobot selectById(String id); int archiveByIds(@Param("ids") String[] ids, @Param("updateBy") String updateBy); int clearActiveMap(@Param("id") String id, @Param("mapId") String mapId, @Param("updateBy") String updateBy); int updateQuicRuntimeState(ResourceRobot robot); List selectStaleConnected(@Param("heartbeatCutoff") Date heartbeatCutoff, @Param("excludedRobotIds") List excludedRobotIds); List selectRuntimeSyncCandidates(@Param("heartbeatCutoff") Date heartbeatCutoff, @Param("excludedRobotIds") List excludedRobotIds); int updateAgvRuntimeStatus(ResourceRobot robot); List lockByRobotIds(@Param("robotIds") List robotIds); int markHeartbeatExpiredOffline(@Param("id") String id, @Param("heartbeatCutoff") Date heartbeatCutoff, @Param("offlineTime") Date offlineTime); }