|
@@ -192,9 +192,7 @@ public class PdfUtil {
|
|
|
Long schoolId = SystemConstant.getHeadOrUserSchoolId();
|
|
|
CommonCacheService commonCacheService = SpringContextHolder.getBean(CommonCacheService.class);
|
|
|
SysConfig sysConfig = commonCacheService.addSysConfigCache(schoolId, SystemConstant.PDF_SIZE_LIST);
|
|
|
- if (Objects.isNull(sysConfig)) {
|
|
|
- sysConfig = commonCacheService.addSysConfigCache(SystemConstant.SYS_PDF_SIZE_LIST);
|
|
|
- }
|
|
|
+ sysConfig = Objects.isNull(sysConfig) ? commonCacheService.addSysConfigCache(SystemConstant.SYS_PDF_SIZE_LIST) : sysConfig;
|
|
|
Optional.ofNullable(sysConfig).orElseThrow(() -> ExceptionResultEnum.ERROR.exception("未配置全局pdf格式清单"));
|
|
|
|
|
|
String pdfSize = sysConfig.getConfigValue().replace("8K", "A6");
|