|
@@ -179,7 +179,6 @@ public class CreatePdfNewUtil {
|
|
|
boolean isDateHasTwo = objectList.stream().filter(m -> "examDate".equals(m.getString("code")) || "examTime".equals(m.getString("code"))).count() == 2;
|
|
|
boolean isCourseFill = false;
|
|
|
boolean isDateFill = false;
|
|
|
- boolean paperCount = false, examCount = false, actualExamCount = false;
|
|
|
// 基础信息
|
|
|
List<Map<String, String>> basicPlate = new ArrayList<>();
|
|
|
for (JSONObject jsonObject : objectList) {
|
|
@@ -319,21 +318,18 @@ public class CreatePdfNewUtil {
|
|
|
basicMap.put("name", "试卷数量");
|
|
|
basicMap.put("value", examStudentList.size() + " + " + backupCount);
|
|
|
basicPlate.add(basicMap);
|
|
|
- paperCount = true;
|
|
|
} else if ("examCount".equals(code)) {
|
|
|
Map<String, String> basicMap = new HashMap<>();
|
|
|
basicMap.put("code", "examCount");
|
|
|
basicMap.put("name", "应考人数");
|
|
|
basicMap.put("value", String.valueOf(examStudentList.size()));
|
|
|
basicPlate.add(basicMap);
|
|
|
- examCount = true;
|
|
|
} else if ("actualExamCount".equals(code)) {
|
|
|
Map<String, String> basicMap = new HashMap<>();
|
|
|
basicMap.put("code", "actualExamCount");
|
|
|
basicMap.put("name", "实考人数");
|
|
|
basicMap.put("value", "");
|
|
|
basicPlate.add(basicMap);
|
|
|
- actualExamCount = true;
|
|
|
} else {
|
|
|
// 扩展字段走本校验,进行数据组装
|
|
|
Set<String> extendFieldsSet = examStudentList.stream().map(ExamStudentCourseDto::getExtendFields).collect(Collectors.toSet());
|
|
@@ -350,30 +346,6 @@ public class CreatePdfNewUtil {
|
|
|
basicPlate.add(basicMap);
|
|
|
}
|
|
|
}
|
|
|
- if (!paperCount) {
|
|
|
- Map<String, String> basicMap1 = new HashMap<>();
|
|
|
- basicMap1.put("code", "paperCount");
|
|
|
- basicMap1.put("name", "试卷数量");
|
|
|
- basicMap1.put("value", examStudentList.size() + " + " + backupCount);
|
|
|
- basicPlate.add(basicMap1);
|
|
|
- }
|
|
|
-
|
|
|
- if (!examCount) {
|
|
|
- Map<String, String> basicMap2 = new HashMap<>();
|
|
|
- basicMap2.put("code", "examCount");
|
|
|
- basicMap2.put("name", "应考人数");
|
|
|
- basicMap2.put("value", String.valueOf(examStudentList.size()));
|
|
|
- basicPlate.add(basicMap2);
|
|
|
- }
|
|
|
-
|
|
|
- if (!actualExamCount) {
|
|
|
- Map<String, String> basicMap3 = new HashMap<>();
|
|
|
- basicMap3.put("code", "actualExamCount");
|
|
|
- basicMap3.put("name", "实考人数");
|
|
|
- basicMap3.put("value", "");
|
|
|
- basicPlate.add(basicMap3);
|
|
|
- }
|
|
|
-
|
|
|
pdfPackageDto.setBasicPlate(basicPlate);
|
|
|
printCommonService.saveAttachmentPackagePdf(pdfPackageDto, examDetail, printCount);
|
|
|
}
|