检查报告优化
This commit is contained in:
@@ -41,12 +41,11 @@ public class MS439Controller {
|
||||
// 获取检验报告PDF
|
||||
String path = ms439PrintService.getJYPDFPath(params);
|
||||
MS439Request ms439Request = new MS439Request();
|
||||
ms439Request.setPagesource("A4");
|
||||
ms439Request.setFileDir(path);
|
||||
LexMarkResultDTO<?> result = ms439PrintService.printImage(ms439Request);
|
||||
// 打印完成后删除临时PDF文件
|
||||
ms439PrintService.deleteSysFileByPath(path);
|
||||
return Result.ok(result);
|
||||
return Result.ok(null);
|
||||
}
|
||||
|
||||
@PostMapping("/getStatus")
|
||||
|
||||
@@ -218,7 +218,7 @@ public class MS439PrintServiceImpl implements MS439PrintService {
|
||||
@Override
|
||||
public String getJYPDFPath(JSONObject params) {
|
||||
// 1. 准备输出路径
|
||||
String dirPath = "D:/TempJYPDF/";
|
||||
String dirPath = "D://TempJYPDF//";
|
||||
File dir = new File(dirPath);// 确保目录存在
|
||||
if (!dir.exists()) {
|
||||
dir.mkdirs();
|
||||
|
||||
Reference in New Issue
Block a user