| | |
| | | return result; |
| | | } |
| | | |
| | | @Override |
| | | public IPage<ProductionProductMainDto> listPageProductionProductMainDailyDto(Page<ProductionProductMainDto> page, ProductionProductMainDto productionProductMainDto) { |
| | | if (productionProductMainDto == null) { |
| | | productionProductMainDto = new ProductionProductMainDto(); |
| | | } |
| | | IPage<ProductionProductMainDto> result = productionProductMainMapper.listPageProductionProductMainDailyDto(page, productionProductMainDto); |
| | | fillHourDefaults(result.getRecords()); |
| | | return result; |
| | | } |
| | | |
| | | private void fillHourDefaults(List<ProductionProductMainDto> records) { |
| | | if (records == null || records.isEmpty()) { |
| | | return; |