试题管理模板修改

This commit is contained in:
zhaolongfei
2024-09-12 14:35:13 +08:00
parent 18bb8a434a
commit 120a4f45fc

View File

@@ -166,12 +166,12 @@ public class ExamQuestionApi extends ApiBaseController {
return badRequest("请上传正确的试题文件"); return badRequest("请上传正确的试题文件");
} }
//获取表头 //获取表头
Row row = sheetAt.getRow(1); Row row = sheetAt.getRow(2);
//从第二行开始获取数据 //从第二行开始获取数据
List<ExamQuestion> examQuestions1 = new ArrayList<>(); List<ExamQuestion> examQuestions1 = new ArrayList<>();
QuestionDto questionDto = new QuestionDto(); QuestionDto questionDto = new QuestionDto();
for (int i=2;i<sheetAt.getPhysicalNumberOfRows();i++) { for (int i=3;i<sheetAt.getPhysicalNumberOfRows();i++) {
//获取每一行 //获取每一行
Row row1 = sheetAt.getRow(i); Row row1 = sheetAt.getRow(i);