|
@@ -358,11 +358,11 @@ public class ExamOrgReportServiceImpl implements ExamOrgReportService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- private List<PartitionTopTen<ExamOrgReportMainBean>> getPartitionSort(List<ExamOrgReportMainBean> list) {
|
|
|
|
- List<PartitionTopTen<ExamOrgReportMainBean>> ret = new ArrayList<PartitionTopTen<ExamOrgReportMainBean>>();
|
|
|
|
|
|
+ private List<PartitionTopTen<PartitionDataBean>> getPartitionSort(List<ExamOrgReportMainBean> list) {
|
|
|
|
+ List<PartitionTopTen<PartitionDataBean>> ret = new ArrayList<PartitionTopTen<PartitionDataBean>>();
|
|
int size = list.get(0).getPartitionData().size();
|
|
int size = list.get(0).getPartitionData().size();
|
|
for (int i = 0; i < size; i++) {
|
|
for (int i = 0; i < size; i++) {
|
|
- PartitionTopTen<ExamOrgReportMainBean> pt = new PartitionTopTen<ExamOrgReportMainBean>();
|
|
|
|
|
|
+ PartitionTopTen<PartitionDataBean> pt = new PartitionTopTen<PartitionDataBean>();
|
|
pt.setCountAsc(getPartitionCountSort(list, i,asc));
|
|
pt.setCountAsc(getPartitionCountSort(list, i,asc));
|
|
pt.setCountDesc(getPartitionCountSort(list, i,desc));
|
|
pt.setCountDesc(getPartitionCountSort(list, i,desc));
|
|
pt.setSignRatioAsc(getPartitionSignRatioSort(list, i, asc));
|
|
pt.setSignRatioAsc(getPartitionSignRatioSort(list, i, asc));
|
|
@@ -374,7 +374,7 @@ public class ExamOrgReportServiceImpl implements ExamOrgReportService {
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
- private List<ExamOrgReportMainBean> getPartitionCountSort(List<ExamOrgReportMainBean> list, int index,int ascOrDesc) {
|
|
|
|
|
|
+ private List<PartitionDataBean> getPartitionCountSort(List<ExamOrgReportMainBean> list, int index,int ascOrDesc) {
|
|
List<ExamOrgReportMainBean> ret = new ArrayList<ExamOrgReportMainBean>(list);
|
|
List<ExamOrgReportMainBean> ret = new ArrayList<ExamOrgReportMainBean>(list);
|
|
Collections.sort(ret, new Comparator<ExamOrgReportMainBean>() {
|
|
Collections.sort(ret, new Comparator<ExamOrgReportMainBean>() {
|
|
|
|
|
|
@@ -393,13 +393,13 @@ public class ExamOrgReportServiceImpl implements ExamOrgReportService {
|
|
|
|
|
|
});
|
|
});
|
|
if (ret.size() > 10) {
|
|
if (ret.size() > 10) {
|
|
- return ret.subList(0, 10);
|
|
|
|
|
|
+ return of(ret.subList(0, 10),index);
|
|
} else {
|
|
} else {
|
|
- return ret;
|
|
|
|
|
|
+ return of(ret,index);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- private List<ExamOrgReportMainBean> getPartitionSignRatioSort(List<ExamOrgReportMainBean> list, int index,int ascOrDesc) {
|
|
|
|
|
|
+ private List<PartitionDataBean> getPartitionSignRatioSort(List<ExamOrgReportMainBean> list, int index,int ascOrDesc) {
|
|
List<ExamOrgReportMainBean> ret = new ArrayList<ExamOrgReportMainBean>(list);
|
|
List<ExamOrgReportMainBean> ret = new ArrayList<ExamOrgReportMainBean>(list);
|
|
Collections.sort(ret, new Comparator<ExamOrgReportMainBean>() {
|
|
Collections.sort(ret, new Comparator<ExamOrgReportMainBean>() {
|
|
|
|
|
|
@@ -418,12 +418,13 @@ public class ExamOrgReportServiceImpl implements ExamOrgReportService {
|
|
|
|
|
|
});
|
|
});
|
|
if (ret.size() > 10) {
|
|
if (ret.size() > 10) {
|
|
- return ret.subList(0, 10);
|
|
|
|
|
|
+ return of(ret.subList(0, 10),index);
|
|
} else {
|
|
} else {
|
|
- return ret;
|
|
|
|
|
|
+ return of(ret,index);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- private List<ExamOrgReportMainBean> getPartitionParticipantRatioSort(List<ExamOrgReportMainBean> list, int index,int ascOrDesc) {
|
|
|
|
|
|
+
|
|
|
|
+ private List<PartitionDataBean> getPartitionParticipantRatioSort(List<ExamOrgReportMainBean> list, int index,int ascOrDesc) {
|
|
List<ExamOrgReportMainBean> ret = new ArrayList<ExamOrgReportMainBean>(list);
|
|
List<ExamOrgReportMainBean> ret = new ArrayList<ExamOrgReportMainBean>(list);
|
|
Collections.sort(ret, new Comparator<ExamOrgReportMainBean>() {
|
|
Collections.sort(ret, new Comparator<ExamOrgReportMainBean>() {
|
|
|
|
|
|
@@ -442,11 +443,24 @@ public class ExamOrgReportServiceImpl implements ExamOrgReportService {
|
|
|
|
|
|
});
|
|
});
|
|
if (ret.size() > 10) {
|
|
if (ret.size() > 10) {
|
|
- return ret.subList(0, 10);
|
|
|
|
|
|
+ return of(ret.subList(0, 10),index);
|
|
} else {
|
|
} else {
|
|
- return ret;
|
|
|
|
|
|
+ return of(ret,index);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ private List<PartitionDataBean> of(List<ExamOrgReportMainBean> list, int index) {
|
|
|
|
+ List<PartitionDataBean> ret = new ArrayList<PartitionDataBean>();
|
|
|
|
+ for(ExamOrgReportMainBean b:list) {
|
|
|
|
+ PartitionDataBean pb=new PartitionDataBean();
|
|
|
|
+ pb.setCount(b.getPartitionData().get(index).getCount());
|
|
|
|
+ pb.setParticipantRatio(b.getPartitionData().get(index).getParticipantRatio());
|
|
|
|
+ pb.setSignRatio(b.getPartitionData().get(index).getSignRatio());
|
|
|
|
+ pb.setOrgName(b.getOrgName());
|
|
|
|
+ pb.setExamName(b.getExamName());
|
|
|
|
+ ret.add(pb);
|
|
|
|
+ }
|
|
|
|
+ return ret;
|
|
|
|
+ }
|
|
@Override
|
|
@Override
|
|
public void exportAll(ProjectEntity pe, Long examId, String items, HttpServletResponse response) {
|
|
public void exportAll(ProjectEntity pe, Long examId, String items, HttpServletResponse response) {
|
|
Long projectId = pe.getId();
|
|
Long projectId = pe.getId();
|
|
@@ -472,24 +486,24 @@ public class ExamOrgReportServiceImpl implements ExamOrgReportService {
|
|
fillExamMainSheetdata(sheets,list1, examheader, partitionCount);
|
|
fillExamMainSheetdata(sheets,list1, examheader, partitionCount);
|
|
List<ExamOrgReportMainBean> list2 = getExamOrgMainList(projectId, examId);
|
|
List<ExamOrgReportMainBean> list2 = getExamOrgMainList(projectId, examId);
|
|
fillExamOrgMainSheetdata(sheets, list2, header, partitionCount);
|
|
fillExamOrgMainSheetdata(sheets, list2, header, partitionCount);
|
|
- if (StringUtils.isNotBlank(items)) {
|
|
|
|
- String[] itemstr = items.split(",");
|
|
|
|
- for (String it : itemstr) {
|
|
|
|
- if ("1".equals(it)) {
|
|
|
|
- fillParticipantSheetdata(sheets, list2, header,partitionCount);
|
|
|
|
- } else if ("2".equals(it)) {
|
|
|
|
- fillMissSheetdata(sheets, list2, header, partitionCount);
|
|
|
|
- } else if ("3".equals(it)) {
|
|
|
|
- fillPassSheetdata(sheets, list2, header, partitionCount);
|
|
|
|
- } else if ("4".equals(it)) {
|
|
|
|
- fillPassRatioSheetdata(sheets, list2, header, partitionCount);
|
|
|
|
- } else if ("5".equals(it)) {
|
|
|
|
- fillPartitionSheetdata(sheets, list2, header, partitionCount);
|
|
|
|
- } else if ("6".equals(it)) {
|
|
|
|
- fillPartitionRatioSheetdata(sheets, list2, header, partitionCount);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+// if (StringUtils.isNotBlank(items)) {
|
|
|
|
+// String[] itemstr = items.split(",");
|
|
|
|
+// for (String it : itemstr) {
|
|
|
|
+// if ("1".equals(it)) {
|
|
|
|
+// fillParticipantSheetdata(sheets, list2, header,partitionCount);
|
|
|
|
+// } else if ("2".equals(it)) {
|
|
|
|
+// fillMissSheetdata(sheets, list2, header, partitionCount);
|
|
|
|
+// } else if ("3".equals(it)) {
|
|
|
|
+// fillPassSheetdata(sheets, list2, header, partitionCount);
|
|
|
|
+// } else if ("4".equals(it)) {
|
|
|
|
+// fillPassRatioSheetdata(sheets, list2, header, partitionCount);
|
|
|
|
+// } else if ("5".equals(it)) {
|
|
|
|
+// fillPartitionSheetdata(sheets, list2, header, partitionCount);
|
|
|
|
+// } else if ("6".equals(it)) {
|
|
|
|
+// fillPartitionRatioSheetdata(sheets, list2, header, partitionCount);
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+// }
|
|
ExportUtils.exportExcel("考试学习中心分析结果", sheets, response);
|
|
ExportUtils.exportExcel("考试学习中心分析结果", sheets, response);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -553,108 +567,108 @@ public class ExamOrgReportServiceImpl implements ExamOrgReportService {
|
|
sheets.add(sheet);
|
|
sheets.add(sheet);
|
|
}
|
|
}
|
|
|
|
|
|
- private void fillParticipantSheetdata(List<SheetData> sheets, List<ExamOrgReportMainBean> list, List<String> header, int partitionCount) {
|
|
|
|
- SheetData sheet1 = new SheetData();
|
|
|
|
- sheet1.setHeader(header);
|
|
|
|
- sheet1.setName("实考人数前十");
|
|
|
|
- fillSheetData(sheets,sheet1, getParticipantSort(list,desc), header.size(), partitionCount);
|
|
|
|
- SheetData sheet2 = new SheetData();
|
|
|
|
- sheet2.setHeader(header);
|
|
|
|
- sheet2.setName("实考人数后十");
|
|
|
|
- fillSheetData(sheets,sheet2, getParticipantSort(list,asc), header.size(), partitionCount);
|
|
|
|
- SheetData sheet3 = new SheetData();
|
|
|
|
- sheet3.setHeader(header);
|
|
|
|
- sheet3.setName("实考比例前十");
|
|
|
|
- fillSheetData(sheets,sheet3, getParticipantRatioSort(list,desc), header.size(), partitionCount);
|
|
|
|
- SheetData sheet4 = new SheetData();
|
|
|
|
- sheet4.setHeader(header);
|
|
|
|
- sheet4.setName("实考比例后十");
|
|
|
|
- fillSheetData(sheets,sheet4, getParticipantRatioSort(list,asc), header.size(), partitionCount);
|
|
|
|
- }
|
|
|
|
- private void fillMissSheetdata(List<SheetData> sheets, List<ExamOrgReportMainBean> list, List<String> header,int partitionCount) {
|
|
|
|
- SheetData sheet1 = new SheetData();
|
|
|
|
- sheet1.setHeader(header);
|
|
|
|
- sheet1.setName("缺考人数前十");
|
|
|
|
- fillSheetData(sheets,sheet1, getMissSort(list,desc), header.size(), partitionCount);
|
|
|
|
- SheetData sheet2 = new SheetData();
|
|
|
|
- sheet2.setHeader(header);
|
|
|
|
- sheet2.setName("缺考人数后十");
|
|
|
|
- fillSheetData(sheets,sheet2, getMissSort(list,asc), header.size(), partitionCount);
|
|
|
|
- SheetData sheet3 = new SheetData();
|
|
|
|
- sheet3.setHeader(header);
|
|
|
|
- sheet3.setName("缺考比例前十");
|
|
|
|
- fillSheetData(sheets,sheet3, getMissRatioSort(list,desc), header.size(), partitionCount);
|
|
|
|
- SheetData sheet4 = new SheetData();
|
|
|
|
- sheet4.setHeader(header);
|
|
|
|
- sheet4.setName("缺考比例后十");
|
|
|
|
- fillSheetData(sheets,sheet4, getMissRatioSort(list,asc), header.size(), partitionCount);
|
|
|
|
- }
|
|
|
|
- private void fillPassSheetdata(List<SheetData> sheets, List<ExamOrgReportMainBean> list, List<String> header,int partitionCount) {
|
|
|
|
- SheetData sheet1 = new SheetData();
|
|
|
|
- sheet1.setHeader(header);
|
|
|
|
- sheet1.setName("及格人数前十");
|
|
|
|
- fillSheetData(sheets,sheet1, getPassSort(list,desc), header.size(), partitionCount);
|
|
|
|
- SheetData sheet2 = new SheetData();
|
|
|
|
- sheet2.setHeader(header);
|
|
|
|
- sheet2.setName("及格人数后十");
|
|
|
|
- fillSheetData(sheets,sheet2, getPassSort(list,asc), header.size(), partitionCount);
|
|
|
|
- }
|
|
|
|
- private void fillPassRatioSheetdata(List<SheetData> sheets, List<ExamOrgReportMainBean> list, List<String> header, int partitionCount) {
|
|
|
|
- SheetData sheet1 = new SheetData();
|
|
|
|
- sheet1.setHeader(header);
|
|
|
|
- sheet1.setName("及格报名人数比例前十");
|
|
|
|
- fillSheetData(sheets,sheet1, getPassSignRatioSort(list,desc), header.size(), partitionCount);
|
|
|
|
- SheetData sheet2 = new SheetData();
|
|
|
|
- sheet2.setHeader(header);
|
|
|
|
- sheet2.setName("及格报名人数比例后十");
|
|
|
|
- fillSheetData(sheets,sheet2, getPassSignRatioSort(list,asc), header.size(), partitionCount);
|
|
|
|
- SheetData sheet3 = new SheetData();
|
|
|
|
- sheet3.setHeader(header);
|
|
|
|
- sheet3.setName("及格实考人数比例前十");
|
|
|
|
- fillSheetData(sheets,sheet3, getPassParticipantRatioSort(list,desc), header.size(), partitionCount);
|
|
|
|
- SheetData sheet4 = new SheetData();
|
|
|
|
- sheet4.setHeader(header);
|
|
|
|
- sheet4.setName("及格实考人数比例后十");
|
|
|
|
- fillSheetData(sheets,sheet4, getPassParticipantRatioSort(list,asc), header.size(), partitionCount);
|
|
|
|
- }
|
|
|
|
- private void fillPartitionSheetdata(List<SheetData> sheets, List<ExamOrgReportMainBean> list, List<String> header, int partitionCount) {
|
|
|
|
- for (int i = 1; i <= partitionCount; i++) {
|
|
|
|
- SheetData sheet1 = new SheetData();
|
|
|
|
- sheet1.setHeader(header);
|
|
|
|
- sheet1.setName("分段" + i + "人数前十");
|
|
|
|
- fillSheetData(sheets, sheet1, getPartitionCountSort(list, i-1, desc), header.size(), partitionCount);
|
|
|
|
- }
|
|
|
|
- for (int i = 1; i <= partitionCount; i++) {
|
|
|
|
- SheetData sheet1 = new SheetData();
|
|
|
|
- sheet1.setHeader(header);
|
|
|
|
- sheet1.setName("分段" + i + "人数后十");
|
|
|
|
- fillSheetData(sheets, sheet1, getPartitionCountSort(list, i-1, asc), header.size(), partitionCount);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- private void fillPartitionRatioSheetdata(List<SheetData> sheets, List<ExamOrgReportMainBean> list, List<String> header, int partitionCount) {
|
|
|
|
- for (int i = 1; i <= partitionCount; i++) {
|
|
|
|
- SheetData sheet1 = new SheetData();
|
|
|
|
- sheet1.setHeader(header);
|
|
|
|
- sheet1.setName("分段" + i + "报名人数比例前十");
|
|
|
|
- fillSheetData(sheets, sheet1, getPartitionSignRatioSort(list, i-1, desc), header.size(), partitionCount);
|
|
|
|
- }
|
|
|
|
- for (int i = 1; i <= partitionCount; i++) {
|
|
|
|
- SheetData sheet1 = new SheetData();
|
|
|
|
- sheet1.setHeader(header);
|
|
|
|
- sheet1.setName("分段" + i + "报名人数比例后十");
|
|
|
|
- fillSheetData(sheets, sheet1, getPartitionSignRatioSort(list, i-1, asc), header.size(), partitionCount);
|
|
|
|
- }
|
|
|
|
- for (int i = 1; i <= partitionCount; i++) {
|
|
|
|
- SheetData sheet1 = new SheetData();
|
|
|
|
- sheet1.setHeader(header);
|
|
|
|
- sheet1.setName("分段" + i + "实考人数比例前十");
|
|
|
|
- fillSheetData(sheets, sheet1, getPartitionParticipantRatioSort(list, i-1, desc), header.size(), partitionCount);
|
|
|
|
- }
|
|
|
|
- for (int i = 1; i <= partitionCount; i++) {
|
|
|
|
- SheetData sheet1 = new SheetData();
|
|
|
|
- sheet1.setHeader(header);
|
|
|
|
- sheet1.setName("分段" + i + "实考人数比例后十");
|
|
|
|
- fillSheetData(sheets, sheet1, getPartitionParticipantRatioSort(list, i-1, asc), header.size(), partitionCount);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+// private void fillParticipantSheetdata(List<SheetData> sheets, List<ExamOrgReportMainBean> list, List<String> header, int partitionCount) {
|
|
|
|
+// SheetData sheet1 = new SheetData();
|
|
|
|
+// sheet1.setHeader(header);
|
|
|
|
+// sheet1.setName("实考人数前十");
|
|
|
|
+// fillSheetData(sheets,sheet1, getParticipantSort(list,desc), header.size(), partitionCount);
|
|
|
|
+// SheetData sheet2 = new SheetData();
|
|
|
|
+// sheet2.setHeader(header);
|
|
|
|
+// sheet2.setName("实考人数后十");
|
|
|
|
+// fillSheetData(sheets,sheet2, getParticipantSort(list,asc), header.size(), partitionCount);
|
|
|
|
+// SheetData sheet3 = new SheetData();
|
|
|
|
+// sheet3.setHeader(header);
|
|
|
|
+// sheet3.setName("实考比例前十");
|
|
|
|
+// fillSheetData(sheets,sheet3, getParticipantRatioSort(list,desc), header.size(), partitionCount);
|
|
|
|
+// SheetData sheet4 = new SheetData();
|
|
|
|
+// sheet4.setHeader(header);
|
|
|
|
+// sheet4.setName("实考比例后十");
|
|
|
|
+// fillSheetData(sheets,sheet4, getParticipantRatioSort(list,asc), header.size(), partitionCount);
|
|
|
|
+// }
|
|
|
|
+// private void fillMissSheetdata(List<SheetData> sheets, List<ExamOrgReportMainBean> list, List<String> header,int partitionCount) {
|
|
|
|
+// SheetData sheet1 = new SheetData();
|
|
|
|
+// sheet1.setHeader(header);
|
|
|
|
+// sheet1.setName("缺考人数前十");
|
|
|
|
+// fillSheetData(sheets,sheet1, getMissSort(list,desc), header.size(), partitionCount);
|
|
|
|
+// SheetData sheet2 = new SheetData();
|
|
|
|
+// sheet2.setHeader(header);
|
|
|
|
+// sheet2.setName("缺考人数后十");
|
|
|
|
+// fillSheetData(sheets,sheet2, getMissSort(list,asc), header.size(), partitionCount);
|
|
|
|
+// SheetData sheet3 = new SheetData();
|
|
|
|
+// sheet3.setHeader(header);
|
|
|
|
+// sheet3.setName("缺考比例前十");
|
|
|
|
+// fillSheetData(sheets,sheet3, getMissRatioSort(list,desc), header.size(), partitionCount);
|
|
|
|
+// SheetData sheet4 = new SheetData();
|
|
|
|
+// sheet4.setHeader(header);
|
|
|
|
+// sheet4.setName("缺考比例后十");
|
|
|
|
+// fillSheetData(sheets,sheet4, getMissRatioSort(list,asc), header.size(), partitionCount);
|
|
|
|
+// }
|
|
|
|
+// private void fillPassSheetdata(List<SheetData> sheets, List<ExamOrgReportMainBean> list, List<String> header,int partitionCount) {
|
|
|
|
+// SheetData sheet1 = new SheetData();
|
|
|
|
+// sheet1.setHeader(header);
|
|
|
|
+// sheet1.setName("及格人数前十");
|
|
|
|
+// fillSheetData(sheets,sheet1, getPassSort(list,desc), header.size(), partitionCount);
|
|
|
|
+// SheetData sheet2 = new SheetData();
|
|
|
|
+// sheet2.setHeader(header);
|
|
|
|
+// sheet2.setName("及格人数后十");
|
|
|
|
+// fillSheetData(sheets,sheet2, getPassSort(list,asc), header.size(), partitionCount);
|
|
|
|
+// }
|
|
|
|
+// private void fillPassRatioSheetdata(List<SheetData> sheets, List<ExamOrgReportMainBean> list, List<String> header, int partitionCount) {
|
|
|
|
+// SheetData sheet1 = new SheetData();
|
|
|
|
+// sheet1.setHeader(header);
|
|
|
|
+// sheet1.setName("及格报名人数比例前十");
|
|
|
|
+// fillSheetData(sheets,sheet1, getPassSignRatioSort(list,desc), header.size(), partitionCount);
|
|
|
|
+// SheetData sheet2 = new SheetData();
|
|
|
|
+// sheet2.setHeader(header);
|
|
|
|
+// sheet2.setName("及格报名人数比例后十");
|
|
|
|
+// fillSheetData(sheets,sheet2, getPassSignRatioSort(list,asc), header.size(), partitionCount);
|
|
|
|
+// SheetData sheet3 = new SheetData();
|
|
|
|
+// sheet3.setHeader(header);
|
|
|
|
+// sheet3.setName("及格实考人数比例前十");
|
|
|
|
+// fillSheetData(sheets,sheet3, getPassParticipantRatioSort(list,desc), header.size(), partitionCount);
|
|
|
|
+// SheetData sheet4 = new SheetData();
|
|
|
|
+// sheet4.setHeader(header);
|
|
|
|
+// sheet4.setName("及格实考人数比例后十");
|
|
|
|
+// fillSheetData(sheets,sheet4, getPassParticipantRatioSort(list,asc), header.size(), partitionCount);
|
|
|
|
+// }
|
|
|
|
+// private void fillPartitionSheetdata(List<SheetData> sheets, List<ExamOrgReportMainBean> list, List<String> header, int partitionCount) {
|
|
|
|
+// for (int i = 1; i <= partitionCount; i++) {
|
|
|
|
+// SheetData sheet1 = new SheetData();
|
|
|
|
+// sheet1.setHeader(header);
|
|
|
|
+// sheet1.setName("分段" + i + "人数前十");
|
|
|
|
+// fillSheetData(sheets, sheet1, getPartitionCountSort(list, i-1, desc), header.size(), partitionCount);
|
|
|
|
+// }
|
|
|
|
+// for (int i = 1; i <= partitionCount; i++) {
|
|
|
|
+// SheetData sheet1 = new SheetData();
|
|
|
|
+// sheet1.setHeader(header);
|
|
|
|
+// sheet1.setName("分段" + i + "人数后十");
|
|
|
|
+// fillSheetData(sheets, sheet1, getPartitionCountSort(list, i-1, asc), header.size(), partitionCount);
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+// private void fillPartitionRatioSheetdata(List<SheetData> sheets, List<ExamOrgReportMainBean> list, List<String> header, int partitionCount) {
|
|
|
|
+// for (int i = 1; i <= partitionCount; i++) {
|
|
|
|
+// SheetData sheet1 = new SheetData();
|
|
|
|
+// sheet1.setHeader(header);
|
|
|
|
+// sheet1.setName("分段" + i + "报名人数比例前十");
|
|
|
|
+// fillSheetData(sheets, sheet1, getPartitionSignRatioSort(list, i-1, desc), header.size(), partitionCount);
|
|
|
|
+// }
|
|
|
|
+// for (int i = 1; i <= partitionCount; i++) {
|
|
|
|
+// SheetData sheet1 = new SheetData();
|
|
|
|
+// sheet1.setHeader(header);
|
|
|
|
+// sheet1.setName("分段" + i + "报名人数比例后十");
|
|
|
|
+// fillSheetData(sheets, sheet1, getPartitionSignRatioSort(list, i-1, asc), header.size(), partitionCount);
|
|
|
|
+// }
|
|
|
|
+// for (int i = 1; i <= partitionCount; i++) {
|
|
|
|
+// SheetData sheet1 = new SheetData();
|
|
|
|
+// sheet1.setHeader(header);
|
|
|
|
+// sheet1.setName("分段" + i + "实考人数比例前十");
|
|
|
|
+// fillSheetData(sheets, sheet1, getPartitionParticipantRatioSort(list, i-1, desc), header.size(), partitionCount);
|
|
|
|
+// }
|
|
|
|
+// for (int i = 1; i <= partitionCount; i++) {
|
|
|
|
+// SheetData sheet1 = new SheetData();
|
|
|
|
+// sheet1.setHeader(header);
|
|
|
|
+// sheet1.setName("分段" + i + "实考人数比例后十");
|
|
|
|
+// fillSheetData(sheets, sheet1, getPartitionParticipantRatioSort(list, i-1, asc), header.size(), partitionCount);
|
|
|
|
+// }
|
|
|
|
+// }
|
|
}
|
|
}
|