Jelajahi Sumber

知识点统计代码提交

pans 6 bulan lalu
induk
melakukan
55413557fe

+ 1 - 1
snowy-plugin/snowy-plugin-disk/snowy-plugin-disk-func/src/main/java/vip/xiaonuo/disk/mapper/mapping/CourseOpenMapper.xml

@@ -89,7 +89,7 @@
                 LEFT JOIN COURSE_INFO b ON
                 a.COURSE_ID = b.COURSE_ID
         WHERE
-            a.SEMESTER_ID = #{semesterId}
+            a.SEMESTER_ID = #{semesterId} AND  b.PUTAWAY_STATUS=1
         ORDER BY
             a.id
     </select>

+ 2 - 1
snowy-plugin/snowy-plugin-exam/snowy-plugin-exam-func/src/main/java/vip/xiaonuo/exam/domain/TExam.java

@@ -98,7 +98,8 @@ public class TExam {
     private String semesterId;
     @ApiModelProperty(value = "课程id", position = 15)
     private String courseId;
-
+    @ApiModelProperty(value = "课时ID", position = 14)
+    private String hourId;
 
 
 }

+ 2 - 1
snowy-plugin/snowy-plugin-exam/snowy-plugin-exam-func/src/main/java/vip/xiaonuo/exam/domain/exam/TExamEditParam.java

@@ -84,6 +84,7 @@ public class TExamEditParam {
 
     private String examType;
 
-
+    @ApiModelProperty(value = "课时ID", position = 14)
+    private String hourId;
 
 }

+ 2 - 9
snowy-plugin/snowy-plugin-exam/snowy-plugin-exam-func/src/main/java/vip/xiaonuo/exam/service/impl/TExamServiceImpl.java

@@ -84,6 +84,8 @@ public class TExamServiceImpl extends ServiceImpl<TExamMapper, TExam> implements
     private CourseOpenMapper courseOpenMapper;
 
 
+
+
     @Override
     public Page<TExamVo> page(TExamPageParam tExamPageParam) {
         if(!StpLoginUserUtil.getLoginUser().getAccount().equals("superAdmin")){
@@ -139,15 +141,6 @@ public class TExamServiceImpl extends ServiceImpl<TExamMapper, TExam> implements
             }
         }
 
-//        if(tExam.getExamType() == null){
-//            if(examPaper.getPaperType() == ExamPaperTypeEnum.Survey.getCode()){
-//                tExam.setExamType("3"); // 调查问卷
-//            }else if(tExamAddParam.getChapterId() != null){
-//                tExam.setExamType("2"); // 章节测验
-//            }else{
-//                tExam.setExamType("1"); // 普通考试
-//            }
-//        }
 
         tExam.setExamType(tExamAddParam.getExamType());
         this.save(tExam);