|
@@ -1,22 +1,48 @@
|
|
|
package com.ym.mec.biz.service.impl;
|
|
|
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.stereotype.Service;
|
|
|
-
|
|
|
+import com.ym.mec.biz.dal.dao.CourseScheduleDao;
|
|
|
import com.ym.mec.biz.dal.dao.CourseScheduleModifyLogDao;
|
|
|
+import com.ym.mec.biz.dal.dao.MusicGroupDao;
|
|
|
+import com.ym.mec.biz.dal.entity.CourseSchedule;
|
|
|
import com.ym.mec.biz.dal.entity.CourseScheduleModifyLog;
|
|
|
+import com.ym.mec.biz.dal.enums.GroupType;
|
|
|
+import com.ym.mec.biz.service.CourseScheduleModifyLogService;
|
|
|
+import com.ym.mec.biz.service.SysMessageService;
|
|
|
import com.ym.mec.common.dal.BaseDAO;
|
|
|
import com.ym.mec.common.service.impl.BaseServiceImpl;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+
|
|
|
+import java.util.Objects;
|
|
|
|
|
|
@Service
|
|
|
-public class CourseScheduleModifyLogServiceImpl extends BaseServiceImpl<Integer,CourseScheduleModifyLog>{
|
|
|
+public class CourseScheduleModifyLogServiceImpl extends BaseServiceImpl<Integer,CourseScheduleModifyLog> implements CourseScheduleModifyLogService {
|
|
|
|
|
|
@Autowired
|
|
|
private CourseScheduleModifyLogDao courseScheduleModifyLogDao;
|
|
|
+ @Autowired
|
|
|
+ private CourseScheduleDao courseScheduleDao;
|
|
|
+ @Autowired
|
|
|
+ private MusicGroupDao musicGroupDao;
|
|
|
+ @Autowired
|
|
|
+ private SysMessageService sysMessageService;
|
|
|
|
|
|
@Override
|
|
|
public BaseDAO<Integer, CourseScheduleModifyLog> getDAO() {
|
|
|
return courseScheduleModifyLogDao;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void pushSchoolCourseChange(long courseId) {
|
|
|
+ CourseSchedule courseSchedule = courseScheduleDao.get(courseId);
|
|
|
+ if(Objects.isNull(courseSchedule)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(courseSchedule.getGroupType() != GroupType.MUSIC){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ String musicGroupId = courseSchedule.getMusicGroupId();
|
|
|
+ musicGroupDao.get(musicGroupId);
|
|
|
+ //TODO
|
|
|
+ }
|
|
|
}
|