|
@@ -299,8 +299,9 @@ public class StudentServeServiceImpl implements StudentServeService {
|
|
|
public void exercisesSituationStatistics2(String monday, List<Integer> studentIds) {
|
|
|
LocalDate nowDate = LocalDateTime.now(DateUtil.zoneId).toLocalDate();
|
|
|
|
|
|
+ int preWeekServiceNum = studentExtracurricularExercisesSituationDao.countWeekServiceNum(nowDate.with(DateUtil.weekFields.dayOfWeek(), DayOfWeek.MONDAY.getValue()).plusDays(-7).toString());
|
|
|
int lastWeekTodayUpdateNum = studentExtracurricularExercisesSituationDao.findLastWeekTodayUpdateNum(nowDate.plusDays(-nowDate.getDayOfWeek().getValue()).toString());
|
|
|
- if(lastWeekTodayUpdateNum<=0){
|
|
|
+ if(preWeekServiceNum>0 && lastWeekTodayUpdateNum<=0){
|
|
|
nowDate = nowDate.plusDays(-nowDate.getDayOfWeek().getValue());
|
|
|
}
|
|
|
|