| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service |
| | | /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/report/service/impl/OutputStatisticsReportServiceImpl.class */ |
| | | |
| | | public class OutputStatisticsReportServiceImpl implements IOutputStatisticsReportService { |
| | | private final SuperAggregateOutputMapper aggregateOutputMapper; |
| | | private final WorkstationMapper workstationMapper; |
| | |
| | | this.commonMapper = commonMapper; |
| | | } |
| | | |
| | | @Override // org.springblade.modules.report.service.IOutputStatisticsReportService |
| | | |
| | | public JSONObject outputStatisticsByShift(StatisticsQueryVO queryVO) { |
| | | queryVO.setBeginTime(DateCycleUtil.setTimeCondition(TIME_CONDITION, Boolean.TRUE)); |
| | | queryVO.setEndTime(DateCycleUtil.setTimeCondition(TIME_CONDITION, Boolean.FALSE)); |
| | |
| | | return workstationData; |
| | | } |
| | | |
| | | @Override // org.springblade.modules.report.service.IOutputStatisticsReportService |
| | | |
| | | public JSONObject outputStatisticsByDate(StatisticsQueryVO queryVO) { |
| | | queryVO.setBeginTime(DateCycleUtil.setTimeCondition(TIME_CONDITION, Boolean.TRUE)); |
| | | queryVO.setEndTime(DateCycleUtil.setTimeCondition(TIME_CONDITION, Boolean.FALSE)); |
| | |
| | | workstationIds.forEach(id -> { |
| | | callables.add(() -> { |
| | | if (!childOutputTables.contains("aggregate_output_" + id)) { |
| | | return new ArrayList(); |
| | | return new ArrayList<>(); |
| | | } |
| | | List<SuperAggregateOutput> output = this.aggregateOutputMapper.getOutputByDateCycleAndWorkstationId(beginTime, endTime, id, statisticsType); |
| | | return FilterOffUtils.filterOffDay(output, OpenTypeEnums.OUT_PUT); |