| 
					
				 | 
			
			
				@@ -11,7 +11,9 @@ import com.ym.mec.biz.dal.page.CourseHomeworkQueryInfo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.biz.dal.page.StudentCourseHomeWorkQueryInfo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.biz.service.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.common.constant.CommonConstants; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ym.mec.common.controller.BaseController; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.common.dal.BaseDAO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ym.mec.common.entity.HttpResponseResult; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.common.exception.BizException; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.common.page.PageInfo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.common.page.QueryInfo; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -23,6 +25,7 @@ import com.ym.mec.util.date.DateUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.apache.commons.collections.CollectionUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.apache.commons.lang3.StringUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.jetbrains.annotations.NotNull; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.springframework.http.HttpStatus; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.stereotype.Service; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.transaction.annotation.Transactional; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import javax.annotation.Resource; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -867,7 +870,7 @@ public class StudentCourseHomeworkServiceImpl extends BaseServiceImpl<Long, Stud 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public CourseHomeworkWrapper.CourseHomeworkList findStudentHomeworkRecordDetail(CourseHomeworkWrapper.StudentCourseHomeworkQuery query) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public HttpResponseResult<CourseHomeworkWrapper.CourseHomeworkList> findStudentHomeworkRecordDetail(CourseHomeworkWrapper.StudentCourseHomeworkQuery query) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         CourseHomeworkWrapper.CourseHomeworkList courseHomeworkDetail = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (ELessonTrainingType.HOMEWORK.equals(query.getType())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             courseHomeworkDetail= courseHomeworkService.findCourseHomeworkDetail( 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -876,14 +879,14 @@ public class StudentCourseHomeworkServiceImpl extends BaseServiceImpl<Long, Stud 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             StudentCourseHomework homework = studentCourseHomeworkDao 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     .getHomeworkByUserIdAndCourseHomeworkId(query.getUserId(), courseHomeworkDetail.getCourseHomeworkId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (homework == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                throw new BizException("作业不存在"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                return BaseController.failed(HttpStatus.NO_CONTENT,"作业不存在"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             courseHomeworkDetail.setSubmitTime(homework.getSubmitTime()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             courseHomeworkDetail = courseHomeworkService.findCourseExtraHomeworkDetail(query.getCourseScheduleId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ExtracurricularExercisesReply exercisesReply = extracurricularExercisesReplyDao.getByExtraIdAndUserId(courseHomeworkDetail.getCourseHomeworkId(), query.getUserId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (exercisesReply == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                throw new BizException("作业不存在"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                return BaseController.failed(HttpStatus.NO_CONTENT,"作业不存在"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             courseHomeworkDetail.setSubmitTime(exercisesReply.getSubmitTime()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -900,8 +903,7 @@ public class StudentCourseHomeworkServiceImpl extends BaseServiceImpl<Long, Stud 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         courseHomeworkDetail.setTrainingDetailList(detailList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return courseHomeworkDetail; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return BaseController.succeed(courseHomeworkDetail); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 |