Browse Source

add:评卷参数结构保存

caozixuan 3 năm trước cách đây
mục cha
commit
f7c6f6a1e6

+ 1 - 0
distributed-print-business/src/main/java/com/qmth/distributed/print/business/service/impl/ExamPaperGroupMarkerServiceImpl.java

@@ -29,6 +29,7 @@ public class ExamPaperGroupMarkerServiceImpl extends ServiceImpl<ExamPaperGroupM
             ExamPaperGroupMarker marker = new ExamPaperGroupMarker();
             marker.setGroupId(examPaperGroupId);
             marker.setMarkerId(e.getId());
+            marker.setLoginName(e.getLoginName());
             return Stream.of(marker);
         }).collect(Collectors.toSet());
         this.saveBatch(examPaperGroupMarkerSet);

+ 4 - 0
distributed-print-business/src/main/java/com/qmth/distributed/print/business/service/impl/ExamPaperGroupServiceImpl.java

@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.qmth.distributed.print.business.bean.marking.GroupInfo;
 import com.qmth.distributed.print.business.bean.marking.Marker;
+import com.qmth.distributed.print.business.bean.marking.PictureConfig;
 import com.qmth.distributed.print.business.bean.marking.Question;
 import com.qmth.distributed.print.business.entity.ExamPaperGroup;
 import com.qmth.distributed.print.business.entity.ExamPaperGroupMarker;
@@ -47,6 +48,8 @@ public class ExamPaperGroupServiceImpl extends ServiceImpl<ExamPaperGroupMapper,
             Double doubleRate = group.getDoubleRate();
             // 仲裁阈值
             Double arbitrateThreshold = group.getArbitrateThreshold();
+            // 图片配置
+            List<PictureConfig> pictureConfigList = group.getPictureConfigList();
 
             ExamPaperGroup examPaperGroup = new ExamPaperGroup();
             examPaperGroup.setExamPaperStructureId(examPaperStructureId);
@@ -57,6 +60,7 @@ public class ExamPaperGroupServiceImpl extends ServiceImpl<ExamPaperGroupMapper,
             examPaperGroup.setTrialCount(0);
             examPaperGroup.setMarkMode(null);
             examPaperGroup.setQuestionInfo(JSON.toJSONString(questionList));
+            examPaperGroup.setPictureConfig(JSON.toJSONString(pictureConfigList));
             this.save(examPaperGroup);
             // 新增后的分组id
             Long groupId = examPaperGroup.getId();