|
|
|
@ -159,6 +159,7 @@ public class StudentHandsOnTaskVideoService extends CoreBaseService<StudentHands
|
|
|
|
|
Student student = studentService.getByUserId(coreUser.getId());
|
|
|
|
|
studentHandsOnTaskVideoQuery.setStudentId(student.getStudentId());
|
|
|
|
|
studentHandsOnTaskVideoQuery.setIsCourseCentre(1);
|
|
|
|
|
studentHandsOnTaskVideoQuery.setCourseType(1);
|
|
|
|
|
String msg = "";
|
|
|
|
|
StudentHandsOnTaskVideo studentHandsOnTaskVideo = studentHandsOnTaskVideoQuery.pojo();
|
|
|
|
|
String videoFile = studentHandsOnTaskVideo.getVideoFile();
|
|
|
|
@ -177,6 +178,7 @@ public class StudentHandsOnTaskVideoService extends CoreBaseService<StudentHands
|
|
|
|
|
//视频成绩 修改为查询观看日志
|
|
|
|
|
List<StudentHandsOnTaskLog> selectLog = studentHandsOnTaskLogService.createLambdaQuery()
|
|
|
|
|
.andEq(StudentHandsOnTaskLog::getHandsOnTaskId, studentHandsOnTaskVideo.getHandsOnTaskId())
|
|
|
|
|
.andEq(StudentHandsOnTaskLog::getCourseType,1)
|
|
|
|
|
.andEq(StudentHandsOnTaskLog::getIsCourseCentre,1)
|
|
|
|
|
.andEq(StudentHandsOnTaskLog::getStudentId, student.getStudentId()).select();
|
|
|
|
|
if (CollectionUtil.isNotEmpty(selectLog)) {
|
|
|
|
@ -206,6 +208,7 @@ public class StudentHandsOnTaskVideoService extends CoreBaseService<StudentHands
|
|
|
|
|
.classId(student.getClassId())
|
|
|
|
|
.videoScore(BigDecimal.valueOf(i).toPlainString())
|
|
|
|
|
.isCourseCentre(1)
|
|
|
|
|
.courseType(1)
|
|
|
|
|
.orgId(student.getOrgId())
|
|
|
|
|
.userId(student.getUserId()).build();
|
|
|
|
|
handsOnAchievementService.setHandsOnAchievement(build, HandsOnTaskEnum.TASK_VIDEO);
|
|
|
|
|