| 
														
															@@ -9,6 +9,7 @@ import com.ym.mec.biz.dal.entity.*; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.dal.enums.*; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.dal.enums.*; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.dal.page.TeacherAttendanceComplaintsQueryInfo; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.dal.page.TeacherAttendanceComplaintsQueryInfo; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.dal.page.TeacherCloseQueryInfo; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.dal.page.TeacherCloseQueryInfo; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import com.ym.mec.biz.event.source.SendMessageSource; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.service.*; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.service.*; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.common.dal.BaseDAO; 
														 | 
														
														 | 
														
															 import com.ym.mec.common.dal.BaseDAO; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.common.exception.BizException; 
														 | 
														
														 | 
														
															 import com.ym.mec.common.exception.BizException; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -55,6 +56,8 @@ public class TeacherAttendanceServiceImpl extends BaseServiceImpl<Long, TeacherA 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	@Autowired 
														 | 
														
														 | 
														
															 	@Autowired 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	private SysMessageService sysMessageService; 
														 | 
														
														 | 
														
															 	private SysMessageService sysMessageService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	@Autowired 
														 | 
														
														 | 
														
															 	@Autowired 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	private SendMessageSource sendMessageSource; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	@Autowired 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	private CourseScheduleTeacherSalaryDao courseScheduleTeacherSalaryDao; 
														 | 
														
														 | 
														
															 	private CourseScheduleTeacherSalaryDao courseScheduleTeacherSalaryDao; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	@Autowired 
														 | 
														
														 | 
														
															 	@Autowired 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	private ClassGroupDao classGroupDao; 
														 | 
														
														 | 
														
															 	private ClassGroupDao classGroupDao; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -77,6 +80,7 @@ public class TeacherAttendanceServiceImpl extends BaseServiceImpl<Long, TeacherA 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	} 
														 | 
														
														 | 
														
															 	} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	@Transactional(rollbackFor = Exception.class) 
														 | 
														
														 | 
														
															 	@Transactional(rollbackFor = Exception.class) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	@Override 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	public void saveStudentStandard(List<StudentStandardDto> studentStandardDtos,Long courseScheduleId){ 
														 | 
														
														 | 
														
															 	public void saveStudentStandard(List<StudentStandardDto> studentStandardDtos,Long courseScheduleId){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		if(studentStandardDtos == null || studentStandardDtos.size() == 0){ 
														 | 
														
														 | 
														
															 		if(studentStandardDtos == null || studentStandardDtos.size() == 0){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			return; 
														 | 
														
														 | 
														
															 			return; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -85,6 +89,14 @@ public class TeacherAttendanceServiceImpl extends BaseServiceImpl<Long, TeacherA 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		if(collect.size() > 0){ 
														 | 
														
														 | 
														
															 		if(collect.size() > 0){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			List<Integer> studentIds = collect.stream().map(e -> e.getUserId()).collect(Collectors.toList()); 
														 | 
														
														 | 
														
															 			List<Integer> studentIds = collect.stream().map(e -> e.getUserId()).collect(Collectors.toList()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			studentAttendanceDao.updateQualified(courseScheduleId,studentIds); 
														 | 
														
														 | 
														
															 			studentAttendanceDao.updateQualified(courseScheduleId,studentIds); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			CourseSchedule.CourseScheduleType type = courseScheduleDao.get(courseScheduleId).getType(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			Map<Integer, String> maps = MapUtil.convertMybatisMap(teacherDao.queryUserNameByIdList(studentIds)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			for (Integer studentId : studentIds) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				Map<Integer, String> receivers = new HashMap<>(1); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				receivers.put(studentId,studentId.toString()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				sendMessageSource.batchSendMessage(MessageSender.JIGUANG,MessageTypeEnum.SMS_STANDARD_QUALIFIED, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						receivers,null,"STUDENT",maps.get(studentId),type.getMsg()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		} 
														 | 
														
														 | 
														
															 		} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		//标记当前课程为已评价 
														 | 
														
														 | 
														
															 		//标记当前课程为已评价 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		courseScheduleDao.updateEvaluate(courseScheduleId); 
														 | 
														
														 | 
														
															 		courseScheduleDao.updateEvaluate(courseScheduleId); 
														 |