|
@@ -90,6 +90,9 @@ public class CreatePdfUtil {
|
|
|
@Autowired
|
|
|
BasicClazzService basicClazzService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ BasicSchoolService basicSchoolService;
|
|
|
+
|
|
|
/**
|
|
|
* 创建登记表
|
|
|
*
|
|
@@ -99,7 +102,7 @@ public class CreatePdfUtil {
|
|
|
* @param printCount
|
|
|
*/
|
|
|
public void createCheckIn(ExamDetail examDetail, BasicAttachment basicAttachment, List<PdfDto> ordinaryPdfList, Integer printCount) throws Exception {
|
|
|
- BasicSchool basicSchool = (BasicSchool) ServletUtil.getRequestSchool();
|
|
|
+ BasicSchool basicSchool = basicSchoolService.getById(examDetail.getSchoolId());
|
|
|
Map<String, String> flowSchoolCodeMap = SystemConstant.getFlowSchoolCodeMap();
|
|
|
if (Objects.isNull(basicAttachment)) {
|
|
|
throw ExceptionResultEnum.ATTACHMENT_IS_NULL.exception();
|