|
@@ -233,11 +233,21 @@ public class QuestionGroupServiceImpl extends IBaseServiceImpl<QuestionGroupEnti
|
|
|
String random = RandomUtil.randomString(8);
|
|
|
|
|
|
// 正确答案
|
|
|
- String correct = (String)list.get(2);
|
|
|
- if (StrUtil.isNotBlank(correct)){
|
|
|
- topicDto.setCorrect(random);
|
|
|
+ log.info("运行第:{}行", i);
|
|
|
+// if (i > 20) {
|
|
|
+// System.out.println("111");
|
|
|
+// }
|
|
|
+
|
|
|
+ // 预防单元格没有边框拿不到值
|
|
|
+ if (list.size() >2){
|
|
|
+ String correct = (String)list.get(2);
|
|
|
+ if (StrUtil.isNotBlank(correct)){
|
|
|
+ topicDto.setCorrect(random);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
Map<String, String> options = topicDto.getOptions();
|
|
|
if (CollectionUtil.isEmpty(options)){
|
|
|
options = new HashMap<>();
|