package com.lingyue.parse.repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingyue.parse.entity.ParseTask;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 解析任务Repository
 */
@Mapper
public interface ParseTaskRepository extends BaseMapper<ParseTask> {
    
    /**
     * 根据文档ID查找解析任务
     */
    @Select("SELECT * FROM parse_tasks WHERE document_id = #{documentId}")
    ParseTask findByDocumentId(@Param("documentId") String documentId);
}
