发货单PDF路径调整
This commit is contained in:
parent
24907cb743
commit
0fe65b9d2a
|
|
@ -325,7 +325,8 @@ public class CrmInvoiceService {
|
|||
String saleOrderNo = invMap.get("saleOrderNo") + "";
|
||||
String path = ReadXmlutils.xmlForMap("", "invOrderPath");
|
||||
String companyUrl = "2".equals(tokenMap.get("companyId") + "") ? "/dehao/" : "/kesai/";
|
||||
String fileUrl = path + companyUrl + clientName + invoiceNo + "-" + saleOrderNo + ".pdf";
|
||||
String pdfFileName = clientName + invoiceNo + "-" + saleOrderNo + ".pdf";
|
||||
String fileUrl = path + companyUrl + pdfFileName;
|
||||
File file = new File(fileUrl);
|
||||
// 如果文件不存在就生成
|
||||
if (!file.exists()) {
|
||||
|
|
@ -333,7 +334,7 @@ public class CrmInvoiceService {
|
|||
// 回写pdf的路径
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("id", id);
|
||||
map.put("invUrl", "/invOrder" + companyUrl + clientName + invoiceNo + ".pdf");
|
||||
map.put("invUrl", "/invOrder" + companyUrl + pdfFileName);
|
||||
this.update(map, ".update");
|
||||
file = new File(fileUrl);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue