试题管理模板修改

This commit is contained in:
zhaolongfei
2024-09-13 16:02:26 +08:00
parent beba553faa
commit 2e2edbbf57

View File

@@ -170,7 +170,7 @@ public class ExamQuestionApi extends ApiBaseController {
//从第二行开始获取数据 //从第二行开始获取数据
List<ExamQuestion> examQuestions1 = new ArrayList<>(); List<ExamQuestion> examQuestions1 = new ArrayList<>();
QuestionDto questionDto = new QuestionDto(); QuestionDto questionDto = new QuestionDto();
if(sheetAt.getRow(1).getCell(1).getStringCellValue().equals("标题(*)")){ if(sheetAt.getRow(1).getCell(0).getStringCellValue().equals("标题(*)")){
row = sheetAt.getRow(1); row = sheetAt.getRow(1);
for (int i = 2;i<sheetAt.getPhysicalNumberOfRows();i++) { for (int i = 2;i<sheetAt.getPhysicalNumberOfRows();i++) {
//获取每一行 //获取每一行