|  |  |  | 
|---|
|  |  |  | import com.qxueyou.scc.school.model.SchHandout; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 考试管理服务层 | 
|---|
|  |  |  | * 考试管理服务层 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @author kevin | 
|---|
|  |  |  | * @createTime 2017-11-1 | 
|---|
|  |  |  | 
|---|
|  |  |  | "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); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | 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())) { | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 如果文件作业是讲义 | 
|---|
|  |  |  | // 如果文件作业是讲义 | 
|---|
|  |  |  | if (exerciseInfo.getCommitUploadType() == ExerciseInfo.EXERCISE_FILE_COMMIT_DOC) { | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(completeInfo.getTargetObjectId())) { | 
|---|
|  |  |  | SchHandout handout = this.read(SchHandout.class, completeInfo.getTargetObjectId()); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 如果是写作作业 | 
|---|
|  |  |  | // 如果是写作作业 | 
|---|
|  |  |  | if (exerciseInfo.getType() == ExerciseInfo.EXERCISE_TYPE_WRITING && StringUtils.isNotEmpty(completeInfo.getTargetObjectId())) { | 
|---|
|  |  |  | completeInfo.setContent(this.orgTextService.getOrgText(completeInfo.getExerciseCompleteId(), OrgText.TABLE_WRITING_EXERCISE).getContent()); | 
|---|
|  |  |  | } | 
|---|