修复 稿件导出路径错误
This commit is contained in:
parent
5c051b08a2
commit
3729dd568a
|
|
@ -1216,7 +1216,8 @@ public class SaleOrderServiceImpl implements SaleOrderService {
|
|||
if(FuncUtil.isEmpty(skuDOS)){
|
||||
throw exception(ErrorCodeConstants.SALE_ORDER_NOT_FILE_EXPORT);
|
||||
}
|
||||
String pathUrl = System.getProperty("user.dir") + "/dsf";
|
||||
|
||||
String pathUrl = pdfPath + "/dsf";
|
||||
File file1 = new File(pathUrl);
|
||||
if (!file1.exists()) {
|
||||
file1.mkdirs();
|
||||
|
|
@ -1228,7 +1229,7 @@ public class SaleOrderServiceImpl implements SaleOrderService {
|
|||
if(FuncUtil.isNotEmpty(sourceFile)){
|
||||
// 生成文件
|
||||
Long entryId = skuDO.getEntryId();
|
||||
String s = codeMap.get(entryId);
|
||||
String s = FuncUtil.toStr(codeMap.get(entryId),skuDO.getId().toString());
|
||||
Integer orderQty = skuDO.getOrderQty();
|
||||
//主宿机生成路径
|
||||
String name = DateUtil.format(LocalDateTime.now(), "yyyyMMdd")
|
||||
|
|
@ -1240,6 +1241,7 @@ public class SaleOrderServiceImpl implements SaleOrderService {
|
|||
JSONObject params = new JSONObject();
|
||||
params.put("input_html_path", sourceFile);
|
||||
params.put("output_pdf_path", ouput);
|
||||
System.out.println("params"+params);
|
||||
log.info("稿件导出 请求wkapp接口url:" + wkappUrl + "/exehtmltopdf");
|
||||
String result = HttpUtil.post(wkappUrl + "/exehtmltopdf", params, 5 * 60 * 1000);
|
||||
log.info("稿件导出 请求wkapp接口返回结果:" + result);
|
||||
|
|
|
|||
Loading…
Reference in New Issue