|
@@ -6,6 +6,7 @@ import com.yonge.cooleshow.auth.api.entity.SysUser;
|
|
import com.yonge.cooleshow.biz.dal.dto.search.MyCourseSearch;
|
|
import com.yonge.cooleshow.biz.dal.dto.search.MyCourseSearch;
|
|
import com.yonge.cooleshow.biz.dal.entity.CourseCalendarEntity;
|
|
import com.yonge.cooleshow.biz.dal.entity.CourseCalendarEntity;
|
|
import com.yonge.cooleshow.biz.dal.service.CourseScheduleService;
|
|
import com.yonge.cooleshow.biz.dal.service.CourseScheduleService;
|
|
|
|
+import com.yonge.cooleshow.biz.dal.service.HolidaysFestivalsService;
|
|
import com.yonge.cooleshow.biz.dal.support.PageUtil;
|
|
import com.yonge.cooleshow.biz.dal.support.PageUtil;
|
|
import com.yonge.cooleshow.biz.dal.vo.*;
|
|
import com.yonge.cooleshow.biz.dal.vo.*;
|
|
import com.yonge.cooleshow.common.controller.BaseController;
|
|
import com.yonge.cooleshow.common.controller.BaseController;
|
|
@@ -41,6 +42,8 @@ public class TeacherCourseScheduleController extends BaseController {
|
|
private CourseScheduleService courseScheduleService;
|
|
private CourseScheduleService courseScheduleService;
|
|
@Resource
|
|
@Resource
|
|
private SysUserFeignService sysUserFeignService;
|
|
private SysUserFeignService sysUserFeignService;
|
|
|
|
+ @Resource
|
|
|
|
+ private HolidaysFestivalsService holidaysFestivalsService;
|
|
|
|
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParam(name = "classDate", dataType = "Integer", value = "年月"),
|
|
@ApiImplicitParam(name = "classDate", dataType = "Integer", value = "年月"),
|
|
@@ -270,5 +273,15 @@ public class TeacherCourseScheduleController extends BaseController {
|
|
courseScheduleService.updateCourseStudent(param);
|
|
courseScheduleService.updateCourseStudent(param);
|
|
return succeed();
|
|
return succeed();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiOperation("查询节假日")
|
|
|
|
+ @GetMapping("/selectHoliday")
|
|
|
|
+ public HttpResponseResult<Object> selectHoliday(Integer year) {
|
|
|
|
+ SysUser user = sysUserFeignService.queryUserInfo();
|
|
|
|
+ if (user == null || null == user.getId()) {
|
|
|
|
+ return failed(HttpStatus.FORBIDDEN, "请登录");
|
|
|
|
+ }
|
|
|
|
+ return succeed(holidaysFestivalsService.queryByYear(year));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|