| | |
| | | public Map<String, Object> workInProgressSv( |
| | | Integer pageNum, Integer pageSize, |
| | | String orderId, String inputProject, String selectProcesses, |
| | | String optionVal, WorkInProgressDTO workInProgressDTO) { |
| | | String optionVal,String terminationVals, WorkInProgressDTO workInProgressDTO) { |
| | | |
| | | Integer offset = (pageNum - 1) * pageSize; |
| | | |
| | | if ("null".equals(orderId)) orderId = ""; |
| | | if ("null".equals(inputProject)) inputProject = ""; |
| | | if ("null".equals(optionVal)) optionVal = ""; |
| | | if ("null".equals(terminationVals)) terminationVals = ""; |
| | | if ("all".equals(selectProcesses)) selectProcesses = ""; |
| | | |
| | | String laminating = reportMapper.getLaminating(selectProcesses); |
| | |
| | | String finalOrderId = orderId; |
| | | String finalInputProject = inputProject; |
| | | String finalSelectProcesses = selectProcesses; |
| | | String finalTerminationVals = terminationVals; |
| | | CompletableFuture<List<WorkInProgressDTO>> dataList2Future = |
| | | asyncExecutor.runAsync(() -> |
| | | reportMapper.workInProgressMpdataList2( |
| | |
| | | |
| | | totalFuture = asyncExecutor.runAsync(() -> |
| | | reportMapper.workInProgressOrderFootSum( |
| | | offset, pageSize, finalOrderId, finalInputProject, finalSelectProcesses, workInProgressDTO)); |
| | | offset, pageSize, finalOrderId, finalInputProject, finalSelectProcesses,finalTerminationVals, workInProgressDTO)); |
| | | |
| | | } else if ("2".equals(optionVal)) { |
| | | // 流程卡号汇总 |
| | |
| | | |
| | | totalFuture = asyncExecutor.runAsync(() -> |
| | | reportMapper.workInProgressOrderFootSum( |
| | | offset, pageSize, finalOrderId, finalInputProject, finalSelectProcesses, workInProgressDTO)); |
| | | offset, pageSize, finalOrderId, finalInputProject, finalSelectProcesses,finalTerminationVals, workInProgressDTO)); |
| | | |
| | | } else if ("3".equals(optionVal)) { |
| | | dataList1Future = asyncExecutor.runAsync(() -> |
| | | reportMapper.workInProgressMpdataList1( |
| | | offset, pageSize, finalOrderId, finalInputProject, finalSelectProcesses, laminating, workInProgressDTO)); |
| | | offset, pageSize, finalOrderId, finalInputProject, finalSelectProcesses, laminating,finalTerminationVals, workInProgressDTO)); |
| | | totalFuture = asyncExecutor.runAsync(() -> |
| | | reportMapper.workInProgressOrderFootSum( |
| | | offset, pageSize, finalOrderId, finalInputProject, finalSelectProcesses, workInProgressDTO)); |
| | | offset, pageSize, finalOrderId, finalInputProject, finalSelectProcesses,finalTerminationVals, workInProgressDTO)); |
| | | |
| | | } else { |
| | | // 不分组 |
| | | dataList1Future = asyncExecutor.runAsync(() -> |
| | | reportMapper.workInProgressMpdataList1( |
| | | offset, pageSize, finalOrderId, finalInputProject, finalSelectProcesses, laminating, workInProgressDTO)); |
| | | offset, pageSize, finalOrderId, finalInputProject, finalSelectProcesses, laminating,finalTerminationVals, workInProgressDTO)); |
| | | |
| | | totalFuture = asyncExecutor.runAsync(() -> |
| | | reportMapper.workInProgressOrderFootSum( |
| | | offset, pageSize, finalOrderId, finalInputProject, finalSelectProcesses, workInProgressDTO)); |
| | | offset, pageSize, finalOrderId, finalInputProject, finalSelectProcesses,finalTerminationVals, workInProgressDTO)); |
| | | } |
| | | |
| | | // 等待全部任务完成 |
| | |
| | | } |
| | | String inputVal= (String) dates.get("inputVal"); |
| | | String project= (String) dates.get("project"); |
| | | String terminationVals= (String) dates.get("terminationVals"); |
| | | if ("null".equals(inputVal)) { |
| | | inputVal = ""; |
| | | } |
| | | if ("null".equals(project)) { |
| | | project = ""; |
| | | } |
| | | List<WorkInProgressDTO> dataList1 =reportMapper.exportWorkInProgressMp(process,inputVal,project); |
| | | if ("null".equals(terminationVals)) { |
| | | terminationVals = ""; |
| | | } |
| | | List<WorkInProgressDTO> dataList1 =reportMapper.exportWorkInProgressMp(process,inputVal,project,terminationVals); |
| | | List<WorkInProgressDTO> dataList2 =reportMapper.exportWorkInProgressMpdataList2(process); |
| | | |
| | | mergeTeamsGroupsName(dataList1, dataList2); |
| | |
| | | public Map<String, Object> workInProgressCombinationSv( |
| | | Integer pageNum, Integer pageSize, |
| | | String orderId, String inputProject, String selectProcesses, |
| | | String optionVal, WorkInProgressDTO workInProgressDTO) { |
| | | String optionVal,String terminationVal, WorkInProgressDTO workInProgressDTO) { |
| | | |
| | | Integer offset = (pageNum - 1) * pageSize; |
| | | |
| | |
| | | } |
| | | if ("null".equals(optionVal)) { |
| | | optionVal = ""; |
| | | } |
| | | if ("null".equals(terminationVal)) { |
| | | terminationVal = ""; |
| | | } |
| | | if ("all".equals(selectProcesses)) { |
| | | selectProcesses = ""; |
| | |
| | | |
| | | // 最终数据集合 |
| | | List<Map<String, Object>> resultList = new ArrayList<>(); |
| | | |
| | | if (!"".equals(selectProcesses)) { |
| | | laminating = reportingWorkMapper.getProcessLaminating(selectProcesses); |
| | | List<Map<String, Object>> singleResult = |
| | | reportMapper.getWorkInProgressCombination(selectProcesses, laminating, optionVal); |
| | | reportMapper.getWorkInProgressCombination(selectProcesses, laminating, optionVal,terminationVal); |
| | | if (singleResult != null && !singleResult.isEmpty()) { |
| | | resultList.addAll(singleResult); |
| | | } |
| | | |
| | | Map<String, Object> total = |
| | | reportMapper.getWorkInProgressCombinationFootSum(selectProcesses, laminating, optionVal); |
| | | reportMapper.getWorkInProgressCombinationFootSum(selectProcesses, laminating, optionVal,terminationVal); |
| | | if (total != null) { |
| | | BigDecimal stockNum = (BigDecimal) total.get("stockNum"); |
| | | BigDecimal stockArea = (BigDecimal) total.get("stockArea"); |
| | |
| | | laminating = reportingWorkMapper.getProcessLaminating(process); |
| | | |
| | | List<Map<String, Object>> singleResult = |
| | | reportMapper.getWorkInProgressCombination(process, laminating, optionVal); |
| | | reportMapper.getWorkInProgressCombination(process, laminating, optionVal,terminationVal); |
| | | |
| | | if (singleResult != null && !singleResult.isEmpty()) { |
| | | resultList.addAll(singleResult); |
| | | } |
| | | |
| | | Map<String, Object> total = |
| | | reportMapper.getWorkInProgressCombinationFootSum(process, laminating, optionVal); |
| | | reportMapper.getWorkInProgressCombinationFootSum(process, laminating, optionVal,terminationVal); |
| | | if (total != null) { |
| | | BigDecimal stockNum = (BigDecimal) total.get("stockNum"); |
| | | BigDecimal stockArea = (BigDecimal) total.get("stockArea"); |
| | |
| | | } |
| | | String inputVal= (String) dates.get("inputVal"); |
| | | String project= (String) dates.get("project"); |
| | | String terminationVals= (String) dates.get("terminationVals"); |
| | | if ("null".equals(inputVal)) { |
| | | inputVal = ""; |
| | | } |
| | | if ("null".equals(project)) { |
| | | project = ""; |
| | | } |
| | | if ("null".equals(terminationVals)) { |
| | | terminationVals = ""; |
| | | } |
| | | |
| | | String laminating = ""; |
| | |
| | | if (!"".equals(process)) { |
| | | laminating = reportingWorkMapper.getProcessLaminating(process); |
| | | List<WorkInProgressCombinationDTO> singleResult = |
| | | reportMapper.exportWorkInProgressCombination(process, laminating, inputVal); |
| | | reportMapper.exportWorkInProgressCombination(process, laminating, inputVal,terminationVals); |
| | | if (singleResult != null && !singleResult.isEmpty()) { |
| | | resultList.addAll((Collection<? extends WorkInProgressCombinationDTO>) singleResult); |
| | | } |
| | |
| | | laminating = reportingWorkMapper.getProcessLaminating(processVal); |
| | | |
| | | List<WorkInProgressCombinationDTO> singleResult = |
| | | reportMapper.exportWorkInProgressCombination(processVal, laminating, inputVal); |
| | | reportMapper.exportWorkInProgressCombination(processVal, laminating, inputVal,terminationVals); |
| | | |
| | | if (singleResult != null && !singleResult.isEmpty()) { |
| | | resultList.addAll((Collection<? extends WorkInProgressCombinationDTO>) singleResult); |