|
|
|
@ -779,14 +779,18 @@ public class SNPushCheckRecordService extends AbstractServiceAdapter { |
|
|
|
|
InvoiceInfo invoice = new InvoiceInfo(); |
|
|
|
|
invoice.setInvoiceTypeCode(snInvoice.getInvoiceType()); |
|
|
|
|
|
|
|
|
|
Date date = new Date(); |
|
|
|
|
SimpleDateFormat ft = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
|
try { |
|
|
|
|
date = ft.parse(snInvoice.getBillingDate()); |
|
|
|
|
} catch (ParseException e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
if(snInvoice.getBillingDate() != null) { |
|
|
|
|
Date date = new Date(); |
|
|
|
|
SimpleDateFormat ft = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
|
try { |
|
|
|
|
date = ft.parse(snInvoice.getBillingDate()); |
|
|
|
|
} catch (ParseException e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
} |
|
|
|
|
invoice.setInvoiceDate(date); |
|
|
|
|
}else{ |
|
|
|
|
log.error("开票日期为空"); |
|
|
|
|
} |
|
|
|
|
invoice.setInvoiceDate(date); |
|
|
|
|
|
|
|
|
|
invoice.setIdentityNumber(snInvoice.getIdcardNo()); |
|
|
|
|
invoice.setPassenger(snInvoice.getRiderName()); |
|
|
|
|