| | |
| | | // 设置题型 |
| | | question.setQuestionType(QuestionTypeEnum.get(excelQuestion.getQuestionType())); |
| | | // 答案去掉空格 |
| | | String rightAnswer = excelQuestion.getCorrect().replaceAll("\\s", ""); |
| | | String rightAnswer = excelQuestion.getCorrect().replaceAll("\\s+", ""); |
| | | // 答案(多选需要用,分割保存字符串到数据库) |
| | | String[] corrects = rightAnswer.split(SPLIT); |
| | | if (corrects.length > 1) { |
| | |
| | | // 设置题型 |
| | | question.setQuestionType(QuestionTypeEnum.get(excelQuestion.getQuestionType())); |
| | | // 答案去掉空格 |
| | | String rightAnswer = excelQuestion.getCorrect().replaceAll("\\s", ""); |
| | | String rightAnswer = excelQuestion.getCorrect().replaceAll("\\s+", ""); |
| | | // 答案(多选需要用,分割保存字符串到数据库) |
| | | String[] corrects = rightAnswer.split(SPLIT); |
| | | if (corrects.length > 1) { |