|
@@ -24,10 +24,7 @@ import org.springframework.stereotype.Service;
|
|
|
import javax.annotation.Resource;
|
|
|
import java.io.IOException;
|
|
|
import java.nio.charset.StandardCharsets;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.HashMap;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
+import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
@Service
|
|
@@ -236,6 +233,7 @@ public class TEOpenServiceImpl implements TEOpenService {
|
|
|
openRecordAnswerBean.setAnswer(JSONArray.parseArray(s.getAnswer()).toJavaList(String.class));
|
|
|
} catch (Exception e) {
|
|
|
log.error("错误答案:{}", s.getAnswer(), e);
|
|
|
+ openRecordAnswerBean.setAnswer(Arrays.asList(s.getAnswer()));
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
answers.add(openRecordAnswerBean);
|