he2802 2 years ago
parent
commit
e30e247378

+ 3 - 2
zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/service/impl/ClassGradeUserServiceImpl.java

@@ -2531,6 +2531,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
                             } else {
                                 //章卷
                                 sectionName = classPeriodSectionVo.getTypeName();
+                                classPeriodSectionVo.setExamId(classPeriodSectionVo.getId());
                                 classPeriodSectionVo.setModuleId(classPeriodVo.getId());
                                 classPeriodSectionVo.setChapterId(classPeriodChapterVo.getId());
                                 classPeriodSectionVo.setGoodsId(goodsId);
@@ -2567,8 +2568,8 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
                     //章卷
                     i++;
                     sectionName = classPeriodSectionVo.getTypeName();
-                    sectionName = classPeriodSectionVo.getTypeName();
-                    classPeriodSectionVo.setModuleId(classPeriodVo.getId());
+                    classPeriodSectionVo.setExamId(classPeriodSectionVo.getId());
+                    classPeriodSectionVo.setModuleId(0L);
                     classPeriodSectionVo.setChapterId(classPeriodVo.getId());
                     classPeriodSectionVo.setGoodsId(goodsId);
                     classPeriodSectionVo.setGradeId(gradeId);

+ 2 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/vo/ClassPeriodSectionVo.java

@@ -185,7 +185,8 @@ public class ClassPeriodSectionVo implements Comparable<ClassPeriodSectionVo> {
 
 	private Long orderGoodsId;
 
-
+	@ApiModelProperty("试卷ID")
+	private Long examId;
 	@Override
 	public int compareTo(ClassPeriodSectionVo o) {
 		return this.getSort() - o.getSort();