派生自 projectDept/qhighschool

EricsHu
2023-11-24 3a27392dc23193ae839526efd779f36589bc91cc
src/main/java/com/qxueyou/scc/admin/progress/dao/ProgressDAO.java
@@ -29,12 +29,12 @@
   }
   /**
    * 根据targetId和learnerId获取进度
    *
    * 根据targetId和learnerId获取进度
    *
    * @param targetId
    *            targetId
    * @param learnerId
    *            学习者id
    *            学习者id
    * @return
    */
   @Cacheable(value = "progress", key = "#targetId+#learnerId")
@@ -43,12 +43,12 @@
      if(lstDetail == null || lstDetail.isEmpty()) {
         return new int[][] {};
      }else {
          int[][] progress = new  int[lstDetail.size()][2];
         int[][] progress = new  int[lstDetail.size()][2];
          int i = 0;
          for(SubjectLectureProgressDetail objDetail : lstDetail) {
             progress[i++] = new int[] {objDetail.getStart(), objDetail.getEnd()};
          }
          return progress;
      }
   }
@@ -59,8 +59,8 @@
   }
   /**
    * 获取学生的各个节点的学习进度,进度值
    *
    * 获取学生的各个节点的学习进度,进度值
    *
    * @param parentId
    * @param userId
    * @return
@@ -75,8 +75,8 @@
   }
   /**
    * 获取当前节点下的父节点
    *
    * 获取当前节点下的父节点
    *
    * @param nodeId
    * @return
    */
@@ -88,8 +88,8 @@
   }
   /**
    * 根据subjectId获取章节列表
    *
    * 根据subjectId获取章节列表
    *
    * @param parentId
    * @param userId
    * @return
@@ -101,7 +101,7 @@
   }
   /**
    * 获取progress 对象
    * 获取progress 对象
    */
   public Progress getProgressObject(String targetId, String userId) {
      return findUniqueByHql(
@@ -110,7 +110,7 @@
   }
   /**
    * 记录用户每个课程学习的位置
    * 记录用户每个课程学习的位置
    */
   @CachePut(value = "lastStudied", key = "#userId + #subjectId + #classId")
   public Map<String, Object> putStudyById(String userId, String subjectId, String lectureId, String lectureParentId,
@@ -137,7 +137,7 @@
   }
   /**
    * 获取用户每个课程上次学习的数据
    * 获取用户每个课程上次学习的数据
    */
   @Cacheable(value = "lastStudied", key = "#userId + #subjectId +#classId")
   public Map<String, Object> getStudyById(String userId, String subjectId, String classId) {
@@ -145,7 +145,7 @@
   }
   /**
    * 获取用户上次学习的数据
    * 获取用户上次学习的数据
    */
   @Cacheable(value = "lastStudied", key = "#userId")
   public Map<String, Object> getStudyByUserId(String userId) {