| | |
| | | String endStr = endDate.atStartOfDay() |
| | | .format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); |
| | | |
| | | // List<Map<String, Object>> inputList = productionProductInputMapper.selectInputStats(startStr, endStr); |
| | | List<Map<String, Object>> inputList = null; |
| | | List<Map<String, Object>> inputList = productionProductInputMapper.selectInputStats(startStr, endStr); |
| | | //List<Map<String, Object>> inputList = null; |
| | | List<Map<String, Object>> outputList = productionProductOutputMapper.selectDailyOutputStats(startStr, endStr); |
| | | |
| | | Map<String, InputOutputAnalysisDto> dateMap = new HashMap<>(); |
| | | |
| | | if (!CollectionUtils.isEmpty(inputList)) { |
| | | for (Map<String, Object> map : inputList) { |
| | | String date = (String) map.get("date"); |
| | | String date = (String) map.get("statDate"); |
| | | if (date == null) |
| | | continue; |
| | | InputOutputAnalysisDto dto = dateMap.getOrDefault(date, new InputOutputAnalysisDto()); |
| | |
| | | |
| | | if (!CollectionUtils.isEmpty(outputList)) { |
| | | for (Map<String, Object> map : outputList) { |
| | | String date = (String) map.get("date"); |
| | | String date = (String) map.get("statDate"); |
| | | if (date == null) |
| | | continue; |
| | | InputOutputAnalysisDto dto = dateMap.getOrDefault(date, new InputOutputAnalysisDto()); |