修复 稿件文件目录问题
This commit is contained in:
parent
2d7ea83f0b
commit
b391148e26
|
|
@ -1217,13 +1217,16 @@ public class SaleOrderServiceImpl implements SaleOrderService {
|
|||
throw exception(ErrorCodeConstants.SALE_ORDER_NOT_FILE_EXPORT);
|
||||
}
|
||||
|
||||
String pathUrl = pdfPath + "/dsf";
|
||||
|
||||
String pathUrl = System.getProperty("user.dir") + "/pdffile/dsf";
|
||||
pathUrl = pathUrl.replaceAll("//", "/");
|
||||
File file1 = new File(pathUrl);
|
||||
if (!file1.exists()) {
|
||||
System.out.println("创建目录:"+pathUrl);
|
||||
file1.mkdirs();
|
||||
}
|
||||
String targetPath = pdfPath + "/dsf";
|
||||
targetPath = targetPath.replaceAll("//", "/");
|
||||
List<File> files = new ArrayList<>();
|
||||
List<String> delFiles = new ArrayList<>();
|
||||
for (SaleOrderSkuDO skuDO : skuDOS) {
|
||||
|
|
@ -1236,7 +1239,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(targetPath + "/{}_{}.pdf",(s+"_"+orderQty),name);
|
||||
|
||||
//请求wkapp
|
||||
JSONObject params = new JSONObject();
|
||||
|
|
|
|||
Loading…
Reference in New Issue