|
@@ -758,14 +758,13 @@ public class KmtCorrectSysServiceImpl implements KmtCorrectSysService {
|
|
|
Calendar ca = Calendar.getInstance();
|
|
|
ca.setTime(DateHelper.parseDate(homework.getDate()+" 12:00:00", "yyyy-MM-dd HH:mm:ss"));
|
|
|
ca.add(Calendar.DATE, 4);// num为增加的天数,可以改变的
|
|
|
- System.out.println(DateHelper.format(ca.getTime(), "yyyy-MM-dd HH:mm:ss"));
|
|
|
if(new Date().getTime()>=ca.getTime().getTime()) {
|
|
|
homeworkCheckStudentDto.setType(1);
|
|
|
}else {
|
|
|
homeworkCheckStudentDto.setType(0);
|
|
|
}
|
|
|
}else {
|
|
|
- homeworkCheckStudentDto.setType(0);
|
|
|
+ homeworkCheckStudentDto.setType(0);
|
|
|
}
|
|
|
homeworkCheckSubjectDto.addStudent(homeworkCheckStudentDto);
|
|
|
}
|