派生自 projectDept/qhighschool

EricsHu
2022-12-05 068fc7f2e81178e55fa191a13709af64b1a163f6
src/main/java/com/qxueyou/scc/exercise/service/impl/ExerciseCompleteService.java
@@ -24,7 +24,7 @@
import com.qxueyou.scc.school.model.SchHandout;
/**
 * 考试管理服务层
 * 考试管理服务层
 * 
 * @author kevin
 * @createTime 2017-11-1
@@ -103,7 +103,7 @@
               "subjectId",exerciseInfo.getSubjectId(),"subjectName",exerciseInfo.getSubject().getName()
               ,"exerciseCompleteId",completeInfo.getExerciseCompleteId());
         
      msgInfoService.doSendTextMsgToUsers(new String[]{completeInfo.getStudentUserId()},MsgInfo.TYPE_CHECK,"老师批改了作业 ", attrs);
      msgInfoService.doSendTextMsgToUsers(new String[]{completeInfo.getStudentUserId()},MsgInfo.TYPE_CHECK,"老师批改了作业 ", attrs);
   }
   
@@ -118,7 +118,7 @@
      completeInfo.setContent(completeInfo.getUploadDesc());
      completeInfo.setTotalScore(exerciseInfo.getScore());
      // 如果文件作业是视频音频作业
      // 如果文件作业是视频音频作业
      if (exerciseInfo.getCommitUploadType() == ExerciseInfo.EXERCISE_FILE_COMMIT_VIDEO 
            || exerciseInfo.getCommitUploadType() == ExerciseInfo.EXERCISE_FILE_COMMIT_AUDIO) {
         if (StringUtils.isNotEmpty(completeInfo.getTargetObjectId())) {
@@ -134,7 +134,7 @@
         }
      }
      // 如果文件作业是讲义
      // 如果文件作业是讲义
      if (exerciseInfo.getCommitUploadType() == ExerciseInfo.EXERCISE_FILE_COMMIT_DOC) {
         if (StringUtils.isNotEmpty(completeInfo.getTargetObjectId())) {
            SchHandout handout = this.read(SchHandout.class, completeInfo.getTargetObjectId());
@@ -147,7 +147,7 @@
         }
      }
      // 如果是写作作业
      // 如果是写作作业
      if (exerciseInfo.getType() == ExerciseInfo.EXERCISE_TYPE_WRITING && StringUtils.isNotEmpty(completeInfo.getTargetObjectId())) {
         completeInfo.setContent(this.orgTextService.getOrgText(completeInfo.getExerciseCompleteId(), OrgText.TABLE_WRITING_EXERCISE).getContent());
      }