| 
														
															@@ -3,6 +3,7 @@ package com.ym.mec.web.controller; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.dal.dto.*; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.dal.dto.*; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.dal.entity.*; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.dal.entity.*; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.dal.enums.ELessonTrainingType; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.dal.enums.ELessonTrainingType; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import com.ym.mec.biz.dal.enums.StandardEnum; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.dal.page.*; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.dal.page.*; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.service.ClassGroupService; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.service.ClassGroupService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.service.CourseHomeworkService; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.service.CourseHomeworkService; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -76,8 +77,8 @@ public class TeacherController extends BaseController { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     public HttpResponseResult<PageInfo<Teacher>> queryPage(TeacherQueryInfo queryInfo) { 
														 | 
														
														 | 
														
															     public HttpResponseResult<PageInfo<Teacher>> queryPage(TeacherQueryInfo queryInfo) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId())); 
														 | 
														
														 | 
														
															         queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId())); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if(queryInfo.getTenantId() == 28){ 
														 | 
														
														 | 
														
															         if(queryInfo.getTenantId() == 28){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        	queryInfo.setTenantId(1); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        	queryInfo.setOrganId(null); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            queryInfo.setTenantId(1); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            queryInfo.setOrganId(null); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         return succeed(teacherService.queryPageDetail(queryInfo)); 
														 | 
														
														 | 
														
															         return succeed(teacherService.queryPageDetail(queryInfo)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -116,7 +117,7 @@ public class TeacherController extends BaseController { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         organId = organizationService.getEmployeeOrgan(organId); 
														 | 
														
														 | 
														
															         organId = organizationService.getEmployeeOrgan(organId); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         demissionFlag = false; 
														 | 
														
														 | 
														
															         demissionFlag = false; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if(isForzenWithQueryCondition == null){ 
														 | 
														
														 | 
														
															         if(isForzenWithQueryCondition == null){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        	isForzenWithQueryCondition = false; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            isForzenWithQueryCondition = false; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         return succeed(teacherService.findTeachers(organId,demissionFlag,isForzenWithQueryCondition)); 
														 | 
														
														 | 
														
															         return succeed(teacherService.findTeachers(organId,demissionFlag,isForzenWithQueryCondition)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -236,14 +237,22 @@ public class TeacherController extends BaseController { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     @ApiOperation(value = "根据课程计划获取需要交作业的学生-公用") 
														 | 
														
														 | 
														
															     @ApiOperation(value = "根据课程计划获取需要交作业的学生-公用") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     @PostMapping("/findCourseStudentsPublic/v2") 
														 | 
														
														 | 
														
															     @PostMapping("/findCourseStudentsPublic/v2") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     public HttpResponseResult<List<StudentCourseHomework>> findCourseStudentsPublicV2(@Validated @RequestBody StudentLessonTrainingDetailWrapper.StudentLessonTrainingQuery query){ 
														 | 
														
														 | 
														
															     public HttpResponseResult<List<StudentCourseHomework>> findCourseStudentsPublicV2(@Validated @RequestBody StudentLessonTrainingDetailWrapper.StudentLessonTrainingQuery query){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        List<StudentCourseHomework>  result = new ArrayList<>(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if(ELessonTrainingType.HOMEWORK.equals(query.getType())){ 
														 | 
														
														 | 
														
															         if(ELessonTrainingType.HOMEWORK.equals(query.getType())){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if (Objects.isNull(query.getCourseScheduleId())) { 
														 | 
														
														 | 
														
															             if (Objects.isNull(query.getCourseScheduleId())) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 throw new BizException("请指定课程"); 
														 | 
														
														 | 
														
															                 throw new BizException("请指定课程"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            return succeed(studentCourseHomeworkService.findStudentCourseHomeworkByCourseV2(query)); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            result = studentCourseHomeworkService.findStudentCourseHomeworkByCourseV2(query); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         }else{ 
														 | 
														
														 | 
														
															         }else{ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            return succeed(studentCourseHomeworkService.findExtraExerciseStudentsV2(query)); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            result = studentCourseHomeworkService.findExtraExerciseStudentsV2(query); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        // 完成才返回提交时间 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        for (StudentCourseHomework studentCourseHomework : result) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            if (!StandardEnum.STANDARD.equals(studentCourseHomework.getStandardFlag())) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                studentCourseHomework.setSubmitTime(null); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        return succeed(result); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 |