38 lines
1.5 KiB
Java
38 lines
1.5 KiB
Java
|
|
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<ResourceRobot> {
|
||
|
|
List<ResourceRobot> 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<ResourceRobot> selectStaleConnected(@Param("heartbeatCutoff") Date heartbeatCutoff,
|
||
|
|
@Param("excludedRobotIds") List<String> excludedRobotIds);
|
||
|
|
|
||
|
|
List<ResourceRobot> selectRuntimeSyncCandidates(@Param("heartbeatCutoff") Date heartbeatCutoff,
|
||
|
|
@Param("excludedRobotIds") List<String> excludedRobotIds);
|
||
|
|
|
||
|
|
int updateAgvRuntimeStatus(ResourceRobot robot);
|
||
|
|
|
||
|
|
List<String> lockByRobotIds(@Param("robotIds") List<String> robotIds);
|
||
|
|
|
||
|
|
int markHeartbeatExpiredOffline(@Param("id") String id,
|
||
|
|
@Param("heartbeatCutoff") Date heartbeatCutoff,
|
||
|
|
@Param("offlineTime") Date offlineTime);
|
||
|
|
}
|