| | |
| | | return WorkstationCache.getDefaultWcs(); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.mdc.service.ITimeUsedAnalysisService |
| | | @Override |
| | | public WorkstationBandShiftVO queryWorkStationShiftIndexName(QueryShiftIndexNameVO vo) { |
| | | Integer type = vo.getType(); |
| | | if (MdcConstant.WORK_STATION.equals(type)) { |
| | |
| | | return getGroupShiftIndexName(vo); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.mdc.service.ITimeUsedAnalysisService |
| | | @Override |
| | | public Map<Long, List<ShiftIndexNameDTO>> queryWorkStationShiftIndex(List<Long> workstationIds, LocalDate localDate) { |
| | | Map<Long, List<ShiftIndexNameDTO>> idToValue = Kv.newMap(); |
| | | workstationIds.forEach(workstationId -> { |
| | |
| | | idToValue.put(workstationId, new ArrayList<>()); |
| | | } |
| | | if (workstation != null) { |
| | | List<ShiftIndexNameDTO> dtos = this.calendarService.queryShiftIndexName(workstation.getCalendarCode(), Integer.valueOf(localDate.getYear()), DateUtil.formatDate(localDate)); |
| | | List<ShiftIndexNameDTO> dtos = this.calendarService.queryShiftIndexName(workstation.getCalendarCode(), localDate.getYear(), DateUtil.formatDate(localDate)); |
| | | idToValue.put(workstationId, dtos); |
| | | } |
| | | }); |