| 
					
				 | 
			
			
				@@ -143,6 +143,60 @@ public class ExportController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private OrganizationService organizationService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private MusicEnlightenmentQuestionnaireService musicEnlightenmentQuestionnaireService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private MusicGroupService musicGroupService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @ApiOperation(value = "乐团列表导出") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @PostMapping("export/musicGroup") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @PreAuthorize("@pcs.hasPermissions('export/musicGroup')") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public void exportMusicGroup(HttpServletResponse response, MusicGroupQueryInfo queryInfo) throws IOException { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        SysUser sysUser = sysUserFeignService.queryUserInfo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (sysUser == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            throw new BizException("用户信息获取失败"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Employee employee = employeeDao.get(sysUser.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (StringUtils.isEmpty(queryInfo.getOrganId())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            queryInfo.setOrganId(employee.getOrganIdList()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }else if(StringUtils.isEmpty(employee.getOrganIdList())){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            throw new BizException("用户所在分部异常"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            List<String> list = Arrays.asList(employee.getOrganIdList().split(",")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if(!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                throw new BizException("非法请求"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        queryInfo.setPage(1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        queryInfo.setRows(49999); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        List<MusicGroup> rows = musicGroupService.queryMusicGroupPage(queryInfo).getRows(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(rows.size() < 1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            throw new BizException("没有可导出数据"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        OutputStream outputStream = response.getOutputStream(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"分部", "乐团编号", "乐团名称","合作单位", "乐团状态", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "收费模式","收费类型","乐团主管","成团人数", "在读人数", "申请时间", "成团时间", "清单状态"}, new String[]{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "organName", "id", "name","cooperationOrganName", "status.msg", "courseViewType.msg","chargeTypeName", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "educationalTeacherName", "teamTeacherName", "groupMemberNum","payNum" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    ,"createTime","updateTime","hasVerifyMusicalList?'已确认':'未确认'"}, rows); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            response.setContentType("application/octet-stream"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            response.setHeader("Content-Disposition", "attac:wq" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "hment;filename=classGroup-" + DateUtil.getDate(new Date()) + ".xls"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            response.flushBuffer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            outputStream = response.getOutputStream(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            workbook.write(outputStream); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            outputStream.flush(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } catch (Exception e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            e.printStackTrace(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } finally { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (outputStream != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    outputStream.close(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } catch (IOException e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    e.printStackTrace(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiOperation(value = "21年暑期考级活动统计页面详情导出") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PostMapping("export/statisticsDetail") 
			 |