ariesy 其他类发票加上imageId和compCode

release
yefei 2 years ago
parent 7e21c2ee16
commit 988d5ed6e7
  1. 6
      dxhy-erp/src/main/java/com/dxhy/erp/service/SNPushCheckRecordService.java

@ -104,7 +104,7 @@ public class SNPushCheckRecordService extends AbstractServiceAdapter {
return post;
}
public String pushInvoiceToRecordInvoice(SNInvoice snInvoice, String taxNo, String company,String compCode) throws Exception {
public String pushInvoiceToRecordInvoice(SNInvoice snInvoice, String taxNo, String company,String imageId,String compCode) throws Exception {
BaseTDxRecordInvoice recordInvoice = new BaseTDxRecordInvoice();
DynamicContextHolder.push(DbConstant.BASICS_READ);
@ -176,6 +176,8 @@ public class SNPushCheckRecordService extends AbstractServiceAdapter {
recordInvoice.setInvoiceStatus("0");
recordInvoice.setInvoiceType(invoiceType);
recordInvoice.setCompany(company);
recordInvoice.setImageId(imageId);
recordInvoice.setCompCode(compCode);
if (baseTDxRecordInvoice != null) {
baseTDxRecordInvoiceDao.update(recordInvoice, recordWrapper);
@ -638,7 +640,7 @@ public class SNPushCheckRecordService extends AbstractServiceAdapter {
log.info("可查验发票,更新底账库完成");
} else {
//不可查验发票,未入库,插入票池
this.pushInvoiceToRecordInvoice(invoice, taxNo, company,compCode);
this.pushInvoiceToRecordInvoice(invoice, taxNo, company,imageId,compCode);
log.info("不可查验发票,插入底账库成功");
}

Loading…
Cancel
Save