@@ -322,7 +322,7 @@ class LessonService extends CrudService {
let lydata = await this.getLyTeacherMsg(classInfo);
// 整理信息
data = { ...data, ...defaults, termid, classid, planyearid, planid };
- const dirIsBefore = moment().isBefore(classInfo.startdate); // isSameOrBefore
+ const dirIsBefore = moment(moment().format('YYYY-MM-DD')).isSameOrBefore(classInfo.startdate); // isSameOrBefore
console.log(`${classInfo.headteacher}-${dirIsBefore}`);
if (dirIsBefore) {
noticeList.push(data);