修复 导出文件路径
This commit is contained in:
parent
3729dd568a
commit
2d7ea83f0b
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue