|
@@ -11,6 +11,7 @@ import com.qmth.distributed.print.business.annotation.ExcelDBFieldDesc;
|
|
|
import com.qmth.distributed.print.business.bean.dto.*;
|
|
|
import com.qmth.distributed.print.business.bean.params.ArraysParams;
|
|
|
import com.qmth.distributed.print.business.bean.params.SerialNumberParams;
|
|
|
+import com.qmth.distributed.print.business.cache.CreatePdfCacheUtil;
|
|
|
import com.qmth.distributed.print.business.entity.*;
|
|
|
import com.qmth.distributed.print.business.enums.*;
|
|
|
import com.qmth.distributed.print.business.service.*;
|
|
@@ -231,7 +232,18 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
List<ExamCardDetail> examCardDetailList = examCardDetailService.list(examCardDetailQueryWrapper);
|
|
|
|
|
|
//抽取卷型
|
|
|
- String paperType = Objects.nonNull(paperTypeParam) ? paperTypeParam : createPdfUtil.getPaperType(examPrintPlan, examTaskDetail, examDetail, examDetailCourse);
|
|
|
+ String key = examDetail.getSchoolId()
|
|
|
+ + "_" + examDetail.getExamStartTime()
|
|
|
+ + "_" + examDetail.getExamEndTime()
|
|
|
+ + "_" + examDetailCourse.getCourseCode()
|
|
|
+ + "_" + examDetailCourse.getPaperNumber();
|
|
|
+ String paperType = null;
|
|
|
+ if (Objects.nonNull(paperTypeParam)) {
|
|
|
+ paperType = paperTypeParam;
|
|
|
+ CreatePdfCacheUtil.setPaperType(key, paperType);
|
|
|
+ } else {
|
|
|
+ createPdfUtil.getPaperType(examPrintPlan, examTaskDetail, key);
|
|
|
+ }
|
|
|
examTaskDetail.setRelatePaperType(paperType);
|
|
|
examDetailCourse.setPaperType(paperType);
|
|
|
|