|
@@ -386,8 +386,11 @@ public class ExamPaperStructureServiceImpl extends ServiceImpl<ExamPaperStructur
|
|
|
if (SystemConstant.longNotNull(examPaperStructureId)) {
|
|
|
// 如果是编辑试卷机构,当客观题信息(大题名称、大题号、小题号、分数)全都没变的情况下不更新客观题机构(因为答案可能已经上传)
|
|
|
examPaperStructure.setId(examPaperStructureId);
|
|
|
+ ExamPaperStructure old = this.getById(examPaperStructureId);
|
|
|
+ // 更新paperAnswer不清
|
|
|
+ examPaperStructure.setPaperAnswer(old.getPaperAnswer());
|
|
|
// 数据库中的原客观题结构
|
|
|
- String oldObjectiveQuestion = this.getById(examPaperStructureId).getObjectiveStructure();
|
|
|
+ String oldObjectiveQuestion = old.getObjectiveStructure();
|
|
|
if (this.matchObjectiveQuestion(objectiveStructure, oldObjectiveQuestion)) {
|
|
|
// 如果本次编辑试卷结构 客观题结构和之前数据库中存储的确实一致,则不更新客观题结构(把原数据库的客观题结构作为更新的)
|
|
|
examPaperStructure.setObjectiveStructure(oldObjectiveQuestion);
|