CMVR-IOT/cmvr-iot-inspection/src/main/java/com/cmvr/inspection/mapper/InspectionRobotMapper.java
lixiaolong 0948d73a62 feat(flow): 添加子流程功能支持和循环迭代追踪
- 新增 SUB_FLOW 类型枚举值用于标识子流程节点
- 实现子流程异步媒体分析协调器管理机制
- 添加循环迭代路径追踪到执行上下文日志
- 增强流程控制服务支持嵌套子流程暂停恢复
- 实现子流程作用域内异步任务等待和取消功能
- 优化循环体多入口独立执行线程调度机制
- 添加节点参数循环引用检测验证机制
- 支持遗留循环参数值解析兼容性处理
- 配置虚拟机器人ID列表绕过在线检查机制
2026-08-21 11:48:52 +08:00

82 lines
2.5 KiB
Java

package com.cmvr.inspection.mapper;
import java.util.List;
import java.util.Date;
import com.cmvr.inspection.domain.InspectionRobot;
import com.cmvr.inspection.domain.vo.InspectionRobotVo;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Param;
/**
* 巡检机器人Mapper接口
*
* @author cmvr-iot
* @since 2026-05-29
*/
public interface InspectionRobotMapper extends MPJBaseMapper<InspectionRobot>
{
/**
* 查询巡检机器人
*
* @param id 巡检机器人主键
* @return 巡检机器人
*/
InspectionRobot selectInspectionRobotById(String id);
List<InspectionRobot> selectByRobotId(String robotId);
int updateQuicRuntimeState(InspectionRobot robot);
/**
* Update the AGV runtime snapshot without changing business audit fields.
*/
int updateRuntimeStatus(InspectionRobot robot);
/**
* Select connected robots that currently report one online AGV device.
*/
List<InspectionRobot> selectRuntimeSyncCandidates(@Param("heartbeatCutoff") Date heartbeatCutoff,
@Param("excludedRobotIds") List<String> excludedRobotIds);
List<InspectionRobot> selectStaleConnectedRobots(@Param("heartbeatCutoff") Date heartbeatCutoff,
@Param("excludedRobotIds") List<String> excludedRobotIds);
int markHeartbeatExpiredOffline(@Param("id") String id,
@Param("heartbeatCutoff") Date heartbeatCutoff,
@Param("offlineTime") Date offlineTime);
int archiveInspectionRobotByIds(@Param("ids") String[] ids, @Param("updateBy") String updateBy);
/**
* 新增巡检机器人
*
* @param inspectionRobot 巡检机器人
* @return 结果
*/
int insertInspectionRobot(InspectionRobot inspectionRobot);
/**
* 修改巡检机器人
*
* @param inspectionRobot 巡检机器人
* @return 结果
*/
int updateInspectionRobot(InspectionRobot inspectionRobot);
/**
* 批量删除巡检机器人
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
int deleteInspectionRobotByIds(String[] ids);
/**
* 查询巡检机器人视图列表(包含关联信息)
*
* @param inspectionRobot 巡检机器人
* @return 巡检机器人视图集合
*/
List<InspectionRobotVo> selectInspectionRobotVoList(InspectionRobot inspectionRobot);
}