Commit 7f9f686a by 丁伟峰

to debug

1 parent 93ec2545
...@@ -235,16 +235,13 @@ public class CapacityQueryServiceImpl implements CapacityQueryService { ...@@ -235,16 +235,13 @@ public class CapacityQueryServiceImpl implements CapacityQueryService {
CapacityQueryOrderRespDTO.CalendarDTO calendarDTO = null; CapacityQueryOrderRespDTO.CalendarDTO calendarDTO = null;
if (dayMaps.containsKey(e.getWorkday())) { if (dayMaps.containsKey(e.getWorkday())) {
calendarDTO = dayMaps.get(e.getWorkday()); calendarDTO = dayMaps.get(e.getWorkday());
times = calendarDTO.getTimes();
} else { } else {
calendarDTO = new CapacityQueryOrderRespDTO.CalendarDTO(); calendarDTO = new CapacityQueryOrderRespDTO.CalendarDTO();
calendarDTO.setDate(e.getWorkday()).setWeek(getWeekday(e.getWorkday())); calendarDTO.setDate(e.getWorkday()).setWeek(getWeekday(e.getWorkday()));
times = new ArrayList<>(); calendarDTO.setTimes(new ArrayList<>());
calendarDTO.setTimes(times);
} }
log.info("calendarDTO: {}", calendarDTO); calendarDTO.getTimes().add(timeDTO);
log.info("times ===> {}", times); dayMaps.put(e.getWorkday(), calendarDTO);
times.add(timeDTO);
} }
return new ArrayList<>(dayMaps.values()); 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!