|  | @@ -37,13 +37,10 @@ public class TeacherAttendanceController extends BaseController {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private TeacherAttendanceService teacherAttendanceService;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private StudentAttendanceService studentAttendanceService;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private StudentAttendanceDao studentAttendanceDao;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private ClassGroupService classGroupService;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
	
		
			
				|  | @@ -98,7 +95,7 @@ public class TeacherAttendanceController extends BaseController {
 | 
	
		
			
				|  |  |      @PostMapping("/studentAttendanceNormalRemind")
 | 
	
		
			
				|  |  |      public HttpResponseResult studentAttendanceNormalRemind(Long courseId){
 | 
	
		
			
				|  |  |          int remindNum = studentAttendanceDao.countNormalRemindNum(courseId);
 | 
	
		
			
				|  |  | -        if(remindNum>0){
 | 
	
		
			
				|  |  | +        if(remindNum > 0){
 | 
	
		
			
				|  |  |              return failed("您已发送过到课提醒");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          CourseSchedule courseSchedule = courseScheduleService.get(courseId);
 | 
	
	
		
			
				|  | @@ -107,7 +104,6 @@ public class TeacherAttendanceController extends BaseController {
 | 
	
		
			
				|  |  |          if(CollectionUtils.isEmpty(studentAttendances)){
 | 
	
		
			
				|  |  |              return succeed();
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |          List<StudentAttendance> normal = studentAttendances.stream().filter(studentAttendance -> studentAttendance.getStatus() == StudentAttendanceStatusEnum.NORMAL).collect(Collectors.toList());
 | 
	
		
			
				|  |  |          //教务推送
 | 
	
		
			
				|  |  |          if(Objects.nonNull(courseSchedule)&& GroupType.MUSIC.equals(courseSchedule.getGroupType())){
 | 
	
	
		
			
				|  | @@ -116,7 +112,7 @@ public class TeacherAttendanceController extends BaseController {
 | 
	
		
			
				|  |  |                  int normalStudentNum = normal.size();
 | 
	
		
			
				|  |  |                  long leaveStudentNum = studentAttendances.stream().filter(studentAttendance -> studentAttendance.getStatus() == StudentAttendanceStatusEnum.LEAVE).count();
 | 
	
		
			
				|  |  |                  long truantStudentNum = studentAttendances.stream().filter(studentAttendance -> studentAttendance.getStatus() == StudentAttendanceStatusEnum.TRUANT).count();
 | 
	
		
			
				|  |  | -                Map<Integer, String> receivers = new HashMap<>();
 | 
	
		
			
				|  |  | +                Map<Integer, String> receivers = new HashMap<>(1);
 | 
	
		
			
				|  |  |                  receivers.put(musicGroup.getTransactionTeacherId(), musicGroup.getTransactionTeacherId().toString());
 | 
	
		
			
				|  |  |                  sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.JIGUANG, MessageTypeEnum.SYSTEM_PUSH_NAMES_ACHIEVE,
 | 
	
		
			
				|  |  |                          receivers, null, 0, null, "SYSTEM", courseSchedule.getName(), normalStudentNum, leaveStudentNum, truantStudentNum);
 | 
	
	
		
			
				|  | @@ -124,10 +120,8 @@ public class TeacherAttendanceController extends BaseController {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          if (normal != null && normal.size() > 0) {
 | 
	
		
			
				|  |  | -            Map<Integer, String> receivers = new HashMap<>();
 | 
	
		
			
				|  |  | -            normal.forEach(e -> {
 | 
	
		
			
				|  |  | -                receivers.put(e.getUserId(), e.getUserId().toString());
 | 
	
		
			
				|  |  | -            });
 | 
	
		
			
				|  |  | +            Map<Integer, String> receivers = new HashMap<>(normal.size());
 | 
	
		
			
				|  |  | +            normal.forEach(e -> receivers.put(e.getUserId(), e.getUserId().toString()));
 | 
	
		
			
				|  |  |              sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.JIGUANG, MessageTypeEnum.STUDENT_PUSH_NAMES_ACHIEVE,
 | 
	
		
			
				|  |  |                      receivers, null, 0, "2", "STUDENT", DateUtil.format(new Date(), DateUtil.DATE_FORMAT_MIN));
 | 
	
		
			
				|  |  |          }else{
 |