|
@@ -336,7 +336,7 @@ public class CreatePdfUtil {
|
|
Set<String> valueSet = new HashSet<>();
|
|
Set<String> valueSet = new HashSet<>();
|
|
for (List<CodeNameEnableValue> codeNameEnableValues : examStudentFieldSet) {
|
|
for (List<CodeNameEnableValue> codeNameEnableValues : examStudentFieldSet) {
|
|
Set<String> collect = codeNameEnableValues.stream().filter(m -> code.equals(m.getCode()) && StringUtils.isNotBlank(m.getValue())).map(m -> m.getValue()).collect(Collectors.toSet());
|
|
Set<String> collect = codeNameEnableValues.stream().filter(m -> code.equals(m.getCode()) && StringUtils.isNotBlank(m.getValue())).map(m -> m.getValue()).collect(Collectors.toSet());
|
|
- if(CollectionUtils.isEmpty(collect)){
|
|
|
|
|
|
+ if (CollectionUtils.isEmpty(collect)) {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
CollectionUtils.addAll(valueSet, collect);
|
|
CollectionUtils.addAll(valueSet, collect);
|
|
@@ -563,9 +563,9 @@ public class CreatePdfUtil {
|
|
Long userId, List<PdfDto> examStudentPdfList, List<File> fileTempList, BasicCardRule basicCardRule) throws IOException {
|
|
Long userId, List<PdfDto> examStudentPdfList, List<File> fileTempList, BasicCardRule basicCardRule) throws IOException {
|
|
if (basicCardRule != null) {
|
|
if (basicCardRule != null) {
|
|
if (ExamNumberStyleEnum.PRINT.equals(basicCardRule.getExamNumberStyle())) {
|
|
if (ExamNumberStyleEnum.PRINT.equals(basicCardRule.getExamNumberStyle())) {
|
|
- if(examStudent == null || StringUtils.isBlank(examStudent.getStudentCode())){
|
|
|
|
- studentHtml = studentHtml.replaceAll("<img src=\"data:image/png;base64,\\$\\{studentCodeBarcode\\}\">", "");
|
|
|
|
- studentHtml = studentHtml.replaceAll("<img src=\"data:image/png;base64,\\$\\{examNumber\\}\">", "");
|
|
|
|
|
|
+ if (examStudent == null || StringUtils.isBlank(examStudent.getStudentCode())) {
|
|
|
|
+ studentHtml = studentHtml.replaceAll("<img src=\"data:image/png;base64,\\$\\{studentCodeBarcode\\}\">", "");
|
|
|
|
+ studentHtml = studentHtml.replaceAll("<img src=\"data:image/png;base64,\\$\\{examNumber\\}\">", "");
|
|
} else {
|
|
} else {
|
|
studentHtml = studentHtml.replaceAll("\\$\\{studentCodeBarcode\\}", examStudent != null && examStudent.getStudentCode() != null ? GoogleBarCodeUtil.createBarCode(examStudent.getStudentCode(), false) : "");
|
|
studentHtml = studentHtml.replaceAll("\\$\\{studentCodeBarcode\\}", examStudent != null && examStudent.getStudentCode() != null ? GoogleBarCodeUtil.createBarCode(examStudent.getStudentCode(), false) : "");
|
|
studentHtml = studentHtml.replaceAll("\\$\\{examNumber\\}", examStudent != null && examStudent.getStudentCode() != null ? GoogleBarCodeUtil.createBarCode(examStudent.getStudentCode(), false) : "");
|
|
studentHtml = studentHtml.replaceAll("\\$\\{examNumber\\}", examStudent != null && examStudent.getStudentCode() != null ? GoogleBarCodeUtil.createBarCode(examStudent.getStudentCode(), false) : "");
|
|
@@ -719,7 +719,7 @@ public class CreatePdfUtil {
|
|
DrawRuleEnum drawRule = Objects.nonNull(examPrintPlan.getDrawRule()) ? examPrintPlan.getDrawRule() : DrawRuleEnum.ONE;
|
|
DrawRuleEnum drawRule = Objects.nonNull(examPrintPlan.getDrawRule()) ? examPrintPlan.getDrawRule() : DrawRuleEnum.ONE;
|
|
ExamTaskDetail examTaskDetail = examTaskDetailService.getByExamIdAndCourseIdAndPaperNumber(examId, null, paperNumber);
|
|
ExamTaskDetail examTaskDetail = examTaskDetailService.getByExamIdAndCourseIdAndPaperNumber(examId, null, paperNumber);
|
|
// 单次抽取套数
|
|
// 单次抽取套数
|
|
- int drawCount = examTaskDetail.getDrawCount().intValue();
|
|
|
|
|
|
+ int drawCount = examTaskDetail.getOpenAb() ? 2 : 1;
|
|
|
|
|
|
String paperType = null;
|
|
String paperType = null;
|
|
try {
|
|
try {
|