package com.yaoai.domain.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yaoai.domain.entity.GraphStep;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface GraphStepMapper extends BaseMapper<GraphStep> {

    @Select("SELECT * FROM graph_steps WHERE run_id = #{runId} ORDER BY seq ASC")
    List<GraphStep> findByRunId(Long runId);
}
