|
|
|
|
521
|
ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream(), ExcelRecommendCustomer.class).registerWriteHandler(new CustomCellWriteHandler()).build();
|
521
|
ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream(), ExcelRecommendCustomer.class).registerWriteHandler(new CustomCellWriteHandler()).build();
|
522
|
// 设置 sheet, 同一个sheet只需要设置一次
|
522
|
// 设置 sheet, 同一个sheet只需要设置一次
|
523
|
WriteSheet writeSheet = EasyExcel.writerSheet("推荐客户").build();
|
523
|
WriteSheet writeSheet = EasyExcel.writerSheet("推荐客户").build();
|
524
|
- List<ExcelRecommendCustomer> recCustomerExport = null;
|
|
|
525
|
do {
|
524
|
do {
|
526
|
- recCustomerExport = taRecommendCustomerService.getRecCustomerExport(getOrgId(request), pageCode, pageSize);
|
|
|
|
|
525
|
+ List<ExcelRecommendCustomer> recCustomerExport = taRecommendCustomerService.getRecCustomerExport(getOrgId(request), pageCode, pageSize);
|
527
|
excelWriter.write(recCustomerExport, writeSheet);
|
526
|
excelWriter.write(recCustomerExport, writeSheet);
|
528
|
|
527
|
|
529
|
pageCode ++;
|
528
|
pageCode ++;
|
|
|
|
|
552
|
// 总页数
|
551
|
// 总页数
|
553
|
Integer pageCount = count % pageSize == 0 ? count / pageSize : (count / pageSize) + 1;
|
552
|
Integer pageCount = count % pageSize == 0 ? count / pageSize : (count / pageSize) + 1;
|
554
|
// 设置读取的class
|
553
|
// 设置读取的class
|
555
|
- ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream(), ExcelRecommendCustomer.class).registerWriteHandler(new CustomCellWriteHandler()).build();
|
|
|
|
|
554
|
+ ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream(), ReporRecommendCustomer.class).registerWriteHandler(new CustomCellWriteHandler()).build();
|
556
|
// 设置 sheet, 同一个sheet只需要设置一次
|
555
|
// 设置 sheet, 同一个sheet只需要设置一次
|
557
|
WriteSheet writeSheet = EasyExcel.writerSheet("报备客户").build();
|
556
|
WriteSheet writeSheet = EasyExcel.writerSheet("报备客户").build();
|
558
|
List<ReporRecommendCustomer> recCustomerExport = null;
|
557
|
List<ReporRecommendCustomer> recCustomerExport = null;
|
|
|
|
|
585
|
// 总页数
|
584
|
// 总页数
|
586
|
Integer pageCount = count % pageSize == 0 ? count / pageSize : (count / pageSize) + 1;
|
585
|
Integer pageCount = count % pageSize == 0 ? count / pageSize : (count / pageSize) + 1;
|
587
|
// 设置读取的class
|
586
|
// 设置读取的class
|
588
|
- ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream(), ExcelRecommendCustomer.class).registerWriteHandler(new CustomCellWriteHandler()).build();
|
|
|
|
|
587
|
+ ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream(), AgentsRecommendCustomer.class).registerWriteHandler(new CustomCellWriteHandler()).build();
|
589
|
// 设置 sheet, 同一个sheet只需要设置一次
|
588
|
// 设置 sheet, 同一个sheet只需要设置一次
|
590
|
WriteSheet writeSheet = EasyExcel.writerSheet("经纪人").build();
|
589
|
WriteSheet writeSheet = EasyExcel.writerSheet("经纪人").build();
|
591
|
List<AgentsRecommendCustomer> recCustomerExport = null;
|
590
|
List<AgentsRecommendCustomer> recCustomerExport = null;
|