mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-06 09:26:48 +08:00
加判断
This commit is contained in:
@@ -312,14 +312,19 @@ public class ExamQuestionApi extends ApiBaseController {
|
|||||||
if(row1.getCell(1).getStringCellValue().equals("多选题")){
|
if(row1.getCell(1).getStringCellValue().equals("多选题")){
|
||||||
examQuestion.setType(2);
|
examQuestion.setType(2);
|
||||||
}
|
}
|
||||||
if(row1.getCell(2).getStringCellValue().equals("中")){
|
|
||||||
examQuestion.setDifficulty(2f);
|
if (row1.getCell(2).getStringCellValue() == null || row1.getCell(2).getStringCellValue().equals("")){
|
||||||
}else if(row1.getCell(2).getStringCellValue().equals("难")){
|
|
||||||
examQuestion.setDifficulty(3f);
|
|
||||||
} else if(row1.getCell(2).getStringCellValue().equals("易")){
|
|
||||||
examQuestion.setDifficulty(1f);
|
|
||||||
}else if(row1.getCell(2).getStringCellValue().equals("")){
|
|
||||||
examQuestion.setDifficulty(null);
|
examQuestion.setDifficulty(null);
|
||||||
|
}else{
|
||||||
|
if( row1.getCell(2).getStringCellValue().equals("中")){
|
||||||
|
examQuestion.setDifficulty(2f);
|
||||||
|
}else if(row1.getCell(2).getStringCellValue().equals("难")){
|
||||||
|
examQuestion.setDifficulty(3f);
|
||||||
|
} else if(row1.getCell(2).getStringCellValue().equals("易")){
|
||||||
|
examQuestion.setDifficulty(1f);
|
||||||
|
}else if(row1.getCell(2).getStringCellValue().equals("")){
|
||||||
|
examQuestion.setDifficulty(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Cell cell = row1.getCell(3);
|
Cell cell = row1.getCell(3);
|
||||||
cell.setCellType(CellType.STRING);
|
cell.setCellType(CellType.STRING);
|
||||||
|
|||||||
Reference in New Issue
Block a user