|
@@ -4148,6 +4148,24 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
+ public void updateCoursesExpireDate(String practiceGroupId, Date coursesExpireDate) {
|
|
|
+ if(practiceGroupId == null || coursesExpireDate == null ){
|
|
|
+ throw new BizException("参数校验失败");
|
|
|
+ }
|
|
|
+ PracticeGroup practiceGroup = practiceGroupDao.get(Long.parseLong(practiceGroupId));
|
|
|
+ if(practiceGroup == null){
|
|
|
+ throw new BizException("课程组不存在");
|
|
|
+ }
|
|
|
+ if(practiceGroup.getCoursesStartDate().after(coursesExpireDate)){
|
|
|
+ throw new BizException("课程有效时间不能小于开始时间");
|
|
|
+ }
|
|
|
+ practiceGroup.setCoursesExpireDate(coursesExpireDate);
|
|
|
+ practiceGroup.setUpdateTime(new Date());
|
|
|
+ practiceGroupDao.update(practiceGroup);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
public Object teacherCourseHeadInfo(Long courseScheduleId) {
|
|
|
SysUser user = sysUserFeignService.queryUserInfo();
|
|
|
if (null == user) {
|