Commit 93ec2545 by 丁伟峰

to debug

1 parent 40d45e4b
......@@ -235,14 +235,16 @@ public class CapacityQueryServiceImpl implements CapacityQueryService {
CapacityQueryOrderRespDTO.CalendarDTO calendarDTO = null;
if (dayMaps.containsKey(e.getWorkday())) {
calendarDTO = dayMaps.get(e.getWorkday());
times = calendarDTO.getTimes();
} else {
calendarDTO = new CapacityQueryOrderRespDTO.CalendarDTO();
calendarDTO.setDate(e.getWorkday()).setWeek(getWeekday(e.getWorkday()));
calendarDTO.setTimes(new ArrayList<>());
times = new ArrayList<>();
calendarDTO.setTimes(times);
}
log.info("calendarDTO: {}", calendarDTO);
log.info("calendarDTO.getTimes() ===> {}", calendarDTO.getTimes());
calendarDTO.getTimes().add(timeDTO);
log.info("times ===> {}", times);
times.add(timeDTO);
}
return new ArrayList<>(dayMaps.values());
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!