|
@@ -3125,7 +3125,7 @@ public class ExportController extends BaseController {
|
|
|
try {
|
|
try {
|
|
|
String[] header = {"老师编号", "老师姓名", "学员总数", "付费学员数量",
|
|
String[] header = {"老师编号", "老师姓名", "学员总数", "付费学员数量",
|
|
|
"试用会员", "会员占比"};
|
|
"试用会员", "会员占比"};
|
|
|
- String[] body = {"teacherId", "teacherName", "totalStudentNum", "vipStudentNum", "eVipStudentNum", "vipStudentDuty"};
|
|
|
|
|
|
|
+ String[] body = {"teacherId", "teacherName", "totalStudentNum", "vipStudentNum", "eVipStudentNum", "vipStudentDuty+\"%\""};
|
|
|
HSSFWorkbook workbook = POIUtil.exportExcel(header, body, rows);
|
|
HSSFWorkbook workbook = POIUtil.exportExcel(header, body, rows);
|
|
|
response.setContentType("application/octet-stream");
|
|
response.setContentType("application/octet-stream");
|
|
|
response.setHeader("Content-Disposition", "attachment;filename=employeeInfo-" + DateUtil.getDate(new Date()) + ".xls");
|
|
response.setHeader("Content-Disposition", "attachment;filename=employeeInfo-" + DateUtil.getDate(new Date()) + ".xls");
|
|
@@ -3164,8 +3164,9 @@ public class ExportController extends BaseController {
|
|
|
}else if(StringUtils.isNotBlank(employee.getOrganIdList())){
|
|
}else if(StringUtils.isNotBlank(employee.getOrganIdList())){
|
|
|
organIds = Arrays.stream(employee.getOrganIdList().split(",")).map(id->Integer.valueOf(id)).collect(Collectors.toList());
|
|
organIds = Arrays.stream(employee.getOrganIdList().split(",")).map(id->Integer.valueOf(id)).collect(Collectors.toList());
|
|
|
}
|
|
}
|
|
|
|
|
+ List<Integer> ids = organIds.stream().filter(id -> !OrganizationService.EXCLUDE_ORGAN_IDS.contains(id)).collect(Collectors.toList());
|
|
|
|
|
|
|
|
- List<EduOrganStudentDataDto> rows = studentService.queryOrganStudentOverView(organIds, queryInfo).getRows();
|
|
|
|
|
|
|
+ List<EduOrganStudentDataDto> rows = studentService.queryOrganStudentOverView(ids, queryInfo).getRows();
|
|
|
if (CollectionUtils.isEmpty(rows)) {
|
|
if (CollectionUtils.isEmpty(rows)) {
|
|
|
response.setStatus(200);
|
|
response.setStatus(200);
|
|
|
response.setContentType("Content-Type: application/json;charset=UTF-8");
|
|
response.setContentType("Content-Type: application/json;charset=UTF-8");
|
|
@@ -3175,9 +3176,8 @@ public class ExportController extends BaseController {
|
|
|
}
|
|
}
|
|
|
OutputStream outputStream = response.getOutputStream();
|
|
OutputStream outputStream = response.getOutputStream();
|
|
|
try {
|
|
try {
|
|
|
- String[] header = {"分部", "老师姓名", "学员总数", "付费学员数量",
|
|
|
|
|
- "试用会员", "会员占比"};
|
|
|
|
|
- String[] body = {"teacherId", "teacherName", "totalStudentNum", "vipStudentNum", "eVipStudentNum", "vipStudentDuty"};
|
|
|
|
|
|
|
+ String[] header = {"分部", "学员总数", "付费会员数量","会员占比"};
|
|
|
|
|
+ String[] body = {"organName", "totalStudentNum", "vipStudentNum", "vipStudentDuty+\"%\""};
|
|
|
HSSFWorkbook workbook = POIUtil.exportExcel(header, body, rows);
|
|
HSSFWorkbook workbook = POIUtil.exportExcel(header, body, rows);
|
|
|
response.setContentType("application/octet-stream");
|
|
response.setContentType("application/octet-stream");
|
|
|
response.setHeader("Content-Disposition", "attachment;filename=employeeInfo-" + DateUtil.getDate(new Date()) + ".xls");
|
|
response.setHeader("Content-Disposition", "attachment;filename=employeeInfo-" + DateUtil.getDate(new Date()) + ".xls");
|
|
@@ -3216,8 +3216,9 @@ public class ExportController extends BaseController {
|
|
|
}else if(StringUtils.isNotBlank(employee.getOrganIdList())){
|
|
}else if(StringUtils.isNotBlank(employee.getOrganIdList())){
|
|
|
organIds = Arrays.stream(employee.getOrganIdList().split(",")).map(id->Integer.valueOf(id)).collect(Collectors.toList());
|
|
organIds = Arrays.stream(employee.getOrganIdList().split(",")).map(id->Integer.valueOf(id)).collect(Collectors.toList());
|
|
|
}
|
|
}
|
|
|
|
|
+ List<Integer> ids = organIds.stream().filter(id -> !OrganizationService.EXCLUDE_ORGAN_IDS.contains(id)).collect(Collectors.toList());
|
|
|
|
|
|
|
|
- List<EduOrganStudentDataDto> rows = indexService.organStudentOverView(organIds, queryInfo).getRows();
|
|
|
|
|
|
|
+ List<EduOrganStudentDataDto> rows = indexService.organStudentOverView(ids, queryInfo).getRows();
|
|
|
if (CollectionUtils.isEmpty(rows)) {
|
|
if (CollectionUtils.isEmpty(rows)) {
|
|
|
response.setStatus(200);
|
|
response.setStatus(200);
|
|
|
response.setContentType("Content-Type: application/json;charset=UTF-8");
|
|
response.setContentType("Content-Type: application/json;charset=UTF-8");
|
|
@@ -3227,9 +3228,9 @@ public class ExportController extends BaseController {
|
|
|
}
|
|
}
|
|
|
OutputStream outputStream = response.getOutputStream();
|
|
OutputStream outputStream = response.getOutputStream();
|
|
|
try {
|
|
try {
|
|
|
- String[] header = {"分部", "老师姓名", "学员总数", "付费学员数量",
|
|
|
|
|
- "试用会员", "会员占比"};
|
|
|
|
|
- String[] body = {"teacherId", "teacherName", "totalStudentNum", "vipStudentNum", "eVipStudentNum", "vipStudentDuty"};
|
|
|
|
|
|
|
+ String[] header = {"排名", "分部", "学员总数", "活跃人数", "活跃人数占比", "使用人数", "使用人数占比", "付费会员数量","付费会员占比", "新增付费会员"};
|
|
|
|
|
+ String[] body = {"index", "organName", "totalStudentNum", "cloudStudyLivelyStudentNum", "cloudStudyLivelyStudentDuty+\"%\"",
|
|
|
|
|
+ "cloudStudyUseStudentNum", "cloudStudyUseStudentDuty+\"%\"", "vipStudentNum", "vipStudentDuty+\"%\"", "newCloudStudyStudentNum"};
|
|
|
HSSFWorkbook workbook = POIUtil.exportExcel(header, body, rows);
|
|
HSSFWorkbook workbook = POIUtil.exportExcel(header, body, rows);
|
|
|
response.setContentType("application/octet-stream");
|
|
response.setContentType("application/octet-stream");
|
|
|
response.setHeader("Content-Disposition", "attachment;filename=employeeInfo-" + DateUtil.getDate(new Date()) + ".xls");
|
|
response.setHeader("Content-Disposition", "attachment;filename=employeeInfo-" + DateUtil.getDate(new Date()) + ".xls");
|