package tech.easyflow.ai.service.impl;

import com.mybatisflex.core.query.QueryWrapper;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import tech.easyflow.ai.entity.WorkflowExecStep;
import tech.easyflow.ai.mapper.WorkflowExecStepMapper;
import tech.easyflow.ai.service.WorkflowExecStepService;

/**
 * 执行记录步骤 服务层实现。
 *
 * @author ArkLight
 * @since 2025-05-28
 */
@Service
public class WorkflowExecStepServiceImpl extends ServiceImpl<WorkflowExecStepMapper, WorkflowExecStep>  implements WorkflowExecStepService {

    @Override
    public WorkflowExecStep getByExecKey(String execKey) {
        QueryWrapper w = QueryWrapper.create();
        w.eq(WorkflowExecStep::getExecKey, execKey);
        return getOne(w);
    }
}
