|
@ -416,6 +416,7 @@ public class ImportService implements IImportService { |
|
|
log.info("追加选项{}", json.get(Constant.Import.RELATION_OPTION)); |
|
|
log.info("追加选项{}", json.get(Constant.Import.RELATION_OPTION)); |
|
|
JSONArray options = json.getJSONArray(Constant.Import.RELATION_OPTION); |
|
|
JSONArray options = json.getJSONArray(Constant.Import.RELATION_OPTION); |
|
|
for (Object obj: options) { |
|
|
for (Object obj: options) { |
|
|
|
|
|
log.info("导入的选项信息{}", obj); |
|
|
HtQuestionRecordOption recordOption = JSONObject.parseObject(((JSONObject) obj).toJSONString(), HtQuestionRecordOption.class); |
|
|
HtQuestionRecordOption recordOption = JSONObject.parseObject(((JSONObject) obj).toJSONString(), HtQuestionRecordOption.class); |
|
|
if (CollectionUtil.isEmpty(questionRecords)) { |
|
|
if (CollectionUtil.isEmpty(questionRecords)) { |
|
|
recordOption.setId(snowflake.nextId()); |
|
|
recordOption.setId(snowflake.nextId()); |
|
|