加判断

This commit is contained in:
Wangxxz
2024-09-30 11:57:55 +08:00
parent effb45c6d0
commit 33df8b0831

View File

@@ -312,8 +312,8 @@ public class ExamQuestionApi extends ApiBaseController {
if(row1.getCell(1).getStringCellValue().equals("多选题")){ if(row1.getCell(1).getStringCellValue().equals("多选题")){
examQuestion.setType(2); examQuestion.setType(2);
} }
log.debug("row1.getCell(2) = " + row1.getCell(2));
if (row1.getCell(2).getStringCellValue() == null || row1.getCell(2).getStringCellValue().equals("")){ if (row1.getCell(2)==null ||row1.getCell(2).getStringCellValue() == null || row1.getCell(2).getStringCellValue().equals("")){
examQuestion.setDifficulty(null); examQuestion.setDifficulty(null);
}else{ }else{
if( row1.getCell(2).getStringCellValue().equals("")){ if( row1.getCell(2).getStringCellValue().equals("")){