| 
					
				 | 
			
			
				@@ -55,12 +55,25 @@ public class ExportServiceImpl implements ExportService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private StoragePluginContext storagePluginContext; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private ManagerDownloadDao managerDownloadDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private CooperationOrganDao cooperationOrganDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Async 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public void orderList(Map<String, Object> params, ManagerDownload managerDownload) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<StudentPaymentOrderExportDto> studentPaymentOrderExportDtos = studentPaymentOrderService.ExportQueryPage(params); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         long i = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Map<Integer, String> cooperationOrganMap = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        List<Integer> cooperationOrganIds = studentPaymentOrderExportDtos.stream() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                .filter(e -> OrderTypeEnum.OUTORDER.equals(e.getType())) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                .filter(e -> e.getMusicGroupId() != null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                .map(e -> Integer.valueOf(e.getMusicGroupId())) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                .distinct() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                .collect(Collectors.toList()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (cooperationOrganIds.size() > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            List<CooperationOrgan> cooperationOrgans = cooperationOrganDao.getCooperationOrganByIds(cooperationOrganIds); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            cooperationOrganMap = cooperationOrgans.stream().collect(Collectors.toMap(CooperationOrgan::getId, CooperationOrgan::getName)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for (StudentPaymentOrderExportDto row : studentPaymentOrderExportDtos) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (row.getActualAmount() == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 row.setActualAmount(BigDecimal.ZERO); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -223,6 +236,11 @@ public class ExportServiceImpl implements ExportService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     row.setEduTeacher(cooperationOrgan.getLinkman() != null ? cooperationOrgan.getLinkman() : row.getEduTeacher()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (row.getType().equals(OrderTypeEnum.OUTORDER) && row.getMusicGroupId() != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (cooperationOrganMap.containsKey(Integer.valueOf(row.getMusicGroupId()))) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    row.setCooperationOrganName(cooperationOrganMap.get(Integer.valueOf(row.getMusicGroupId()))); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (row.getMusicGroupId() != null && row.getMusicGroupId().equals("null")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 row.setMusicGroupId(""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -279,6 +297,18 @@ public class ExportServiceImpl implements ExportService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Async 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public void routeOrderList(Map<String, Object> params, ManagerDownload managerDownload) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<StudentPaymentOrderExportDto> studentPaymentOrderExportDtos = studentPaymentRouteOrderDao.ExportQueryPage(params); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Map<Integer, String> cooperationOrganMap = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        List<Integer> cooperationOrganIds = studentPaymentOrderExportDtos.stream() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                .filter(e -> OrderTypeEnum.OUTORDER.equals(e.getType())) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                .filter(e -> e.getMusicGroupId() != null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                .map(e -> Integer.valueOf(e.getMusicGroupId())) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                .distinct() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                .collect(Collectors.toList()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (cooperationOrganIds.size() > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            List<CooperationOrgan> cooperationOrgans = cooperationOrganDao.getCooperationOrganByIds(cooperationOrganIds); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            cooperationOrganMap = cooperationOrgans.stream().collect(Collectors.toMap(CooperationOrgan::getId, CooperationOrgan::getName)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         long i = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for (StudentPaymentOrderExportDto row : studentPaymentOrderExportDtos) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (row.getActualAmount() == null) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -442,6 +472,11 @@ public class ExportServiceImpl implements ExportService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     row.setEduTeacher(cooperationOrgan.getLinkman() != null ? cooperationOrgan.getLinkman() : row.getEduTeacher()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (row.getType().equals(OrderTypeEnum.OUTORDER) && row.getMusicGroupId() != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (cooperationOrganMap.containsKey(Integer.valueOf(row.getMusicGroupId()))) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    row.setCooperationOrganName(cooperationOrganMap.get(Integer.valueOf(row.getMusicGroupId()))); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (row.getMusicGroupId() != null && row.getMusicGroupId().equals("null")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 row.setMusicGroupId(""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 |