@@ -889,7 +889,8 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
timeList.forEach(o -> {
boolean checkDataTime = this.checkStudentCourseTime(studentId, startTimeFun.apply(o), endTimeFun.apply(o));
if (checkDataTime) {
- throw new BizException("学生id:" + studentId + ",预计安排在" + DateUtil.dateToString(startTimeFun.apply(o), "yyyy年MM月dd号 HH点mm分") + "的课程时间存在冲突!");
+ SysUser sysUser = sysUserFeignService.queryUserById(studentId);
+ throw new BizException("学生:" + sysUser.getUsername() + ",预计安排在" + DateUtil.dateToString(startTimeFun.apply(o), "yyyy年MM月dd号 HH点mm分") + "的课程时间存在冲突!");
}
});
@@ -65,6 +65,7 @@ public class TaskController extends BaseController {
@GetMapping("/courseStatus")
public HttpResponseResult<Object> courseStatus() {
scheduleService.scheduleTask();
+ teacherTotalService.queryTeacherTotal();
return HttpResponseResult.succeed();