|
@@ -1304,16 +1304,16 @@ public class RoomServiceImpl implements RoomService {
|
|
|
}
|
|
|
//学员曲目下载状态改为未下载
|
|
|
ExamSongDownloadData json = new ExamSongDownloadData();
|
|
|
- json.setSongName(sysExamSong.getName());
|
|
|
+ json.setExamSongName(sysExamSong.getName());
|
|
|
json.setUrl(sysExamSong.getUrl());
|
|
|
json.setStatus(0);
|
|
|
- json.setSongId(examSongId);
|
|
|
+ json.setExamSongId(examSongId);
|
|
|
courseScheduleStudentPaymentDao.adjustExamSong(Long.parseLong(roomId.substring(1)),null, JSON.toJSONString(json));
|
|
|
|
|
|
ExamSongMessage examSongMessage = new ExamSongMessage();
|
|
|
- examSongMessage.setSongName(sysExamSong.getName());
|
|
|
+ examSongMessage.setExamSongName(sysExamSong.getName());
|
|
|
examSongMessage.setUrl(sysExamSong.getUrl());
|
|
|
- examSongMessage.setSongId(examSongId);
|
|
|
+ examSongMessage.setExamSongId(examSongId);
|
|
|
ExamSongDownloadMessageMessage msg = new ExamSongDownloadMessageMessage(examSongMessage);
|
|
|
imHelper.publishMessage(authUser.getId().toString(), roomId, msg, 0);
|
|
|
}
|
|
@@ -1340,10 +1340,10 @@ public class RoomServiceImpl implements RoomService {
|
|
|
String examJson = courseScheduleStudentPaymentDao.getExamJsonByCourseIdAndUserId(scheduleId, authUser.getId());
|
|
|
if(StringUtils.isEmpty(examJson)){
|
|
|
msg = new ExamSongDownloadData();
|
|
|
- msg.setSongName(sysExamSong.getName());
|
|
|
+ msg.setExamSongName(sysExamSong.getName());
|
|
|
msg.setUrl(sysExamSong.getUrl());
|
|
|
msg.setStatus(status);
|
|
|
- msg.setSongId(examSongId);
|
|
|
+ msg.setExamSongId(examSongId);
|
|
|
}else {
|
|
|
msg = JSON.parseObject(examJson, ExamSongDownloadData.class);
|
|
|
msg.setStatus(status);
|
|
@@ -1352,7 +1352,7 @@ public class RoomServiceImpl implements RoomService {
|
|
|
|
|
|
//给老师发送学员曲目下载状态
|
|
|
CourseSchedule courseSchedule = courseScheduleDao.get(scheduleId);
|
|
|
- ExamSongDownloadStatusMessage deviceResourceMessage = new ExamSongDownloadStatusMessage(status,authUser.getId());
|
|
|
+ ExamSongDownloadStatusMessage deviceResourceMessage = new ExamSongDownloadStatusMessage(status,authUser.getId(),examSongId);
|
|
|
imHelper.publishMessage(authUser.getId().toString(),courseSchedule.getActualTeacherId().toString(), roomId, deviceResourceMessage);
|
|
|
}
|
|
|
|