| | |
| | | @Autowired |
| | | private IMediaLiveService mediaLiveService; |
| | | |
| | | |
| | | @Override |
| | | public Result add(String subjectName,String coverPageFileId, String contentFileId,int type) { |
| | | |
| | |
| | | @Override |
| | | public MySubjectV getMy1stSubjectVById(String subjectId) { |
| | | String hql = "from MySubjectV p where p.id.userId=? and p.id.subjectId=?"; |
| | | |
| | | MySubjectV result = findUnique(hql, CollectionUtils.newList(ClientUtils.getUserId(), subjectId), |
| | | String UserId = ClientUtils.getUserId(); |
| | | MySubjectV result = findUnique(hql, CollectionUtils.newList(UserId, subjectId), |
| | | MySubjectV.class); |
| | | |
| | | return result; |
| | |
| | | //清理并复制原课程 |
| | | clsLectureService.doClearLecturesToClass(classId,subjectId); |
| | | clsLectureService.doCopyLecturesToClass(origSubjectId, subjectId, classId); |
| | | }else { |
| | | clsLectureService.doClearLecturesToClass(classId,subjectId); |
| | | clsLectureService.doCopyLecturesToClass(origSubjectId, subjectId, classId); |
| | | } |
| | | |
| | | TraceUtils.setUpdateTrace(subject); |
| | | subject.setTeacherId(teacherId); |
| | | subject.setTeacherName(teacher.getName()); |