Commit 7f9f686a by 丁伟峰

to debug

1 parent 93ec2545
......@@ -235,16 +235,13 @@ 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()));
times = new ArrayList<>();
calendarDTO.setTimes(times);
calendarDTO.setTimes(new ArrayList<>());
}
log.info("calendarDTO: {}", calendarDTO);
log.info("times ===> {}", times);
times.add(timeDTO);
calendarDTO.getTimes().add(timeDTO);
dayMaps.put(e.getWorkday(), calendarDTO);
}
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!