修复 导出文件路径

This commit is contained in:
yf 2025-01-20 08:54:12 +08:00
parent 3729dd568a
commit 2d7ea83f0b
1 changed files with 3 additions and 2 deletions

View File

@ -1218,8 +1218,10 @@ public class SaleOrderServiceImpl implements SaleOrderService {
}
String pathUrl = pdfPath + "/dsf";
pathUrl = pathUrl.replaceAll("//", "/");
File file1 = new File(pathUrl);
if (!file1.exists()) {
System.out.println("创建目录:"+pathUrl);
file1.mkdirs();
}
List<File> files = new ArrayList<>();
@ -1234,8 +1236,7 @@ public class SaleOrderServiceImpl implements SaleOrderService {
//主宿机生成路径
String name = DateUtil.format(LocalDateTime.now(), "yyyyMMdd")
+"-"+IdUtil.simpleUUID().substring(0, 4);
String ouput = StrUtil.format(pathUrl + "/{}_{}.pdf",
s+"_"+orderQty,name);
String ouput = StrUtil.format(pathUrl + "/{}_{}.pdf",(s+"_"+orderQty),name);
//请求wkapp
JSONObject params = new JSONObject();