增加xml文件
This commit is contained in:
parent
d186be6f2d
commit
255a8d14f4
|
@ -48,6 +48,8 @@ invoice_pdf:
|
||||||
#税务ofd附件下载存放路径
|
#税务ofd附件下载存放路径
|
||||||
invoice_ofd:
|
invoice_ofd:
|
||||||
url: D:\yongansystem\invoice\ofd\
|
url: D:\yongansystem\invoice\ofd\
|
||||||
|
invoice_xml:
|
||||||
|
url: D:\yongansystem\invoice\xml\
|
||||||
zx:
|
zx:
|
||||||
# 生产用这个 这个是银行给的
|
# 生产用这个 这个是银行给的
|
||||||
privateKey: MIGTAgEAMBMGByqGSM49AgEGCCqBHM9VAYItBHkwdwIBAQQgOHOzaKWBWOAbslvtYtS8tcQiJ9W9DT2cGQM3KSgXpfygCgYIKoEcz1UBgi2hRANCAAQNPct0MHOuDrVJBIy0RI7JKx9/PTlFHZlkIJr0EqpC+b/+N+z3JKbCMZ/wcP1V36Q+DlfDJCY9Ai/Uk2PZ9ZaF
|
privateKey: MIGTAgEAMBMGByqGSM49AgEGCCqBHM9VAYItBHkwdwIBAQQgOHOzaKWBWOAbslvtYtS8tcQiJ9W9DT2cGQM3KSgXpfygCgYIKoEcz1UBgi2hRANCAAQNPct0MHOuDrVJBIy0RI7JKx9/PTlFHZlkIJr0EqpC+b/+N+z3JKbCMZ/wcP1V36Q+DlfDJCY9Ai/Uk2PZ9ZaF
|
||||||
|
|
|
@ -75,6 +75,8 @@ public class InvoiceServiceImpl extends BaseService<InvoiceEntity, String> imple
|
||||||
private String invoicePdfUrl;
|
private String invoicePdfUrl;
|
||||||
@Value("${invoice_ofd.url:}")
|
@Value("${invoice_ofd.url:}")
|
||||||
private String invoiceOfdUrl;
|
private String invoiceOfdUrl;
|
||||||
|
@Value("${invoice_xml.url:}")
|
||||||
|
private String invoiceXmlUrl;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public JsonResultEntity queryArchives(JSONObject json) {
|
public JsonResultEntity queryArchives(JSONObject json) {
|
||||||
|
@ -232,6 +234,18 @@ public class InvoiceServiceImpl extends BaseService<InvoiceEntity, String> imple
|
||||||
ManyfileUpload(fileOfd, entity, sub_reference, att_reference, jsonObject);
|
ManyfileUpload(fileOfd, entity, sub_reference, att_reference, jsonObject);
|
||||||
logger.info("========ofd文件上传OA完成========");
|
logger.info("========ofd文件上传OA完成========");
|
||||||
}
|
}
|
||||||
|
//获取xml文件到本地 并为xml取名,否则会报无法访问错误
|
||||||
|
logger.info("========开始将xml文件保存到本地========");
|
||||||
|
String xmlFileName = generateFileName(xmlUrl, "XML");
|
||||||
|
String xmlSavePath = invoiceXmlUrl + xmlFileName;
|
||||||
|
downloadPdf(xmlUrl, xmlSavePath);
|
||||||
|
logger.info("========pdf文件保存到本地完成========");
|
||||||
|
File fileXml = new File(xmlSavePath);
|
||||||
|
if(null !=fileXml){
|
||||||
|
logger.info("========开始将xml文件上传OA========");
|
||||||
|
ManyfileUpload(fileXml, entity, sub_reference, att_reference, jsonObject);
|
||||||
|
logger.info("========xml文件上传OA完成========");
|
||||||
|
}
|
||||||
saveTaskLivingDetails(entity.getSerial_number(), entity.getBusiness_no(), jsonObject.toJSONString(), resultJson.toJSONString(), true, "QueryInvoiceResultPluginInitializer");
|
saveTaskLivingDetails(entity.getSerial_number(), entity.getBusiness_no(), jsonObject.toJSONString(), resultJson.toJSONString(), true, "QueryInvoiceResultPluginInitializer");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue