|
|
@ -147,12 +147,11 @@ public class SNPushCheckRecordService extends AbstractServiceAdapter { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
recordInvoice.setUuid(fpdm + fphm); |
|
|
|
recordInvoice.setUuid(fpdm + fphm); |
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
|
|
|
|
|
String format1 = format.format(new Date()); |
|
|
|
if (kprq != null) { |
|
|
|
if (kprq != null) { |
|
|
|
recordInvoice.setInvoiceDate(sdf.format(kprq)); |
|
|
|
recordInvoice.setInvoiceDate(format.format(kprq)); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
|
|
|
|
|
String format1 = format.format(new Date()); |
|
|
|
|
|
|
|
recordInvoice.setInvoiceDate(format1); |
|
|
|
recordInvoice.setInvoiceDate(format1); |
|
|
|
log.error("开票日期为空.请检查发票"); |
|
|
|
log.error("开票日期为空.请检查发票"); |
|
|
|
} |
|
|
|
} |
|
|
@ -172,7 +171,7 @@ public class SNPushCheckRecordService extends AbstractServiceAdapter { |
|
|
|
recordInvoice.setXfTaxNo(xfsh); |
|
|
|
recordInvoice.setXfTaxNo(xfsh); |
|
|
|
recordInvoice.setGfTaxNo(gfsbh); |
|
|
|
recordInvoice.setGfTaxNo(gfsbh); |
|
|
|
recordInvoice.setGfName(gfmc); |
|
|
|
recordInvoice.setGfName(gfmc); |
|
|
|
recordInvoice.setCreateDate(new Date().toString()); |
|
|
|
recordInvoice.setCreateDate(format1); |
|
|
|
recordInvoice.setSourceSystem("2"); |
|
|
|
recordInvoice.setSourceSystem("2"); |
|
|
|
recordInvoice.setInvoiceStatus("0"); |
|
|
|
recordInvoice.setInvoiceStatus("0"); |
|
|
|
recordInvoice.setInvoiceType(invoiceType); |
|
|
|
recordInvoice.setInvoiceType(invoiceType); |
|
|
|