Commit 663091b6 by 丁伟峰

Merge branch 'feat-dingwf-mvp616' into develop

2 parents 3506f546 a33b8f01
......@@ -231,13 +231,14 @@ public class CapacityQueryServiceImpl implements CapacityQueryService {
timeDTO.setText((String) timeSpans[0]);
timeDTO.setBegin((String) timeSpans[1]);
timeDTO.setEnd((String) timeSpans[2]);
if (!dayMaps.containsKey(e.getWorkday())) {
CapacityQueryOrderRespDTO.CalendarDTO calendarDTO = new CapacityQueryOrderRespDTO.CalendarDTO();
calendarDTO.setDate(e.getWorkday());
calendarDTO.setWeek(getWeekday(e.getWorkday()));
dayMaps.put(e.getWorkday(), calendarDTO);
List<CapacityQueryOrderRespDTO.TimeDTO> times = null;
CapacityQueryOrderRespDTO.CalendarDTO calendarDTO = null;
if (dayMaps.containsKey(e.getWorkday())) {
calendarDTO = dayMaps.get(e.getWorkday());
} else {
calendarDTO = new CapacityQueryOrderRespDTO.CalendarDTO();
}
dayMaps.get(e.getWorkday()).getTimes().add(timeDTO);
calendarDTO.getTimes().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!