package cn.iocoder.yudao.module.inspection.service;

import cn.iocoder.yudao.module.inspection.entity.InspectionWorkNode;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 检测流程表 服务类
 * </p>
 *
 * @author dianliang
 * @since 2024-10-31
 */
public interface IInspectionWorkNodeService extends IService<InspectionWorkNode> {
    /**
     * 员工接单
     * @param inspectionId
     * @param workNodeId
     */
    void updateInspectionWorkNode(Integer inspectionId, String workNodeId);

    /**
     * 更新流程图片 步骤信息
     * @param inspectionWorkNode
     */
    void updateImageAndStep(InspectionWorkNode inspectionWorkNode);

    /**
     * 根据检测id获取流程信息
     * @param inspectionId
     * @return
     */
    List<InspectionWorkNode> getWeorkNodesById(Integer inspectionId);
}
