|
@@ -322,12 +322,12 @@ public class StudentServeServiceImpl implements StudentServeService {
|
|
|
Set<Integer> hss = studentCourseHomeworkDao.checkStudentHaveHomeworkInDateRange(monDayDate.toString(), sunDayDate.toString(), studentIds);
|
|
|
Set<Integer> ess = extracurricularExercisesReplyDao.checkStudentHaveExercisesInDateRange(monDayDate.toString(), sunDayDate.toString(), studentIds);
|
|
|
for (Integer studentId : studentIds) {
|
|
|
- if(hss.contains(studentId)||ess.contains(studentId)){
|
|
|
- result.put("isAssignHomework", 1);
|
|
|
+ if(!hss.contains(studentId)&&!ess.contains(studentId)){
|
|
|
+ result.put("isAssignHomework", 0);
|
|
|
return result;
|
|
|
}
|
|
|
}
|
|
|
- result.put("isAssignHomework", 0);
|
|
|
+ result.put("isAssignHomework", 1);
|
|
|
return result;
|
|
|
}
|
|
|
}
|