1.修复创建多个向量库2.查看试卷没有用户答案3.向量化自动出题

This commit is contained in:
2026-06-11 21:50:27 +08:00
parent 6cdb38df68
commit a8e28e513d
74 changed files with 5120 additions and 5326 deletions

View File

@@ -1,7 +1,16 @@
package top.tqx.demo_1.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import top.tqx.demo_1.entity.Question;
import java.util.List;
public interface QuestionMapper extends BaseMapper<Question> {
/**
* 根据文档ID查询已有的题目题干,用于去重
*/
@Select("SELECT exclude_stems AS stem FROM question WHERE document_id = #{documentId} AND exclude_stems IS NOT NULL AND is_deleted = 0")
List<String> selectStemsByDocumentId(String documentId);
}