|  | @@ -321,57 +321,6 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    @ApiOperation(value = "21年暑期考级活动统计页面详情导出")
 | 
	
		
			
				|  |  | -    @PostMapping("export/statisticsDetail")
 | 
	
		
			
				|  |  | -    @PreAuthorize("@pcs.hasPermissions('export/statisticsDetail')")
 | 
	
		
			
				|  |  | -    public void statisticsDetail(HttpServletResponse response, ChildrenReserveQueryInfo 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<ChildrenStatisticsDetailDto> rows = childrenDayReserveService.exportStatisticsDetail(queryInfo);
 | 
	
		
			
				|  |  | -        if(rows.size() < 1){
 | 
	
		
			
				|  |  | -            throw new BizException("没有可导出数据");
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -        OutputStream outputStream = response.getOutputStream();
 | 
	
		
			
				|  |  | -        try {
 | 
	
		
			
				|  |  | -            HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"分部", "合作单位", "乐团","学员编号", "学员姓名", "手机号","声部","所在班级","指导老师", "是否预约", "器乐等级", "乐理等级", "是否购买VIP","是否购买乐理课"}, new String[]{
 | 
	
		
			
				|  |  | -                    "organName", "cooperationOrganName", "musicGroupName","userId", "username", "phone","subjectName",
 | 
	
		
			
				|  |  | -                    "currentClass", "realName", "isReserve == true ?'是':'否'","gradeLeave"
 | 
	
		
			
				|  |  | -                    ,"theoryLevel","buyVipFlag == true ?'是':'否'","buyTheoryCourseFlag == true ?'是':'否'"}, 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/statisticsDetailPage")
 |