Merge branch 'zcwy0912-llf' into 104-master

This commit is contained in:
nisen
2024-09-12 18:32:59 +08:00

View File

@@ -166,12 +166,12 @@ public class ExamQuestionApi extends ApiBaseController {
return badRequest("请上传正确的试题文件");
}
//获取表头
Row row = sheetAt.getRow(1);
Row row = sheetAt.getRow(2);
//从第二行开始获取数据
List<ExamQuestion> examQuestions1 = new ArrayList<>();
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);