Commit 9212fec4 authored by 赵啸非's avatar 赵啸非

重构部分功能模块

parent 556466dc
Pipeline #2343 failed with stages
......@@ -335,11 +335,11 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
MultipartFile multipartFile = new MockMultipartFile(templateName, templateName,
ContentType.APPLICATION_OCTET_STREAM.toString(), byteArrayOutputStream.toByteArray());
String mergedocPath = uploadService.saveFileUpload(multipartFile, "/mergedoc", context.getUser());
String mergedocPath = uploadService.saveFileUpload(multipartFile, "mergedoc", context.getUser());
String mergedoc = rootPath + mergedocPath;
//转换预览图片
String fileName = RandomUtil.randomNumbers(12) + ".jpg";
String preView = this.filePath + "file/preview/" + fileName;
String preView = rootPath + "file/preview/" + fileName;
log.info(String.format("mergedoc:%s,preViewPath:%s", mergedoc,preView));
WordUtil.convertWordToJPEG(mergedoc, preView);
log.info("preView:" + mergedocPath);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment