Commit edd638df authored by neo's avatar neo

[bugfix] add input invoice bugs

parent b890e51c
...@@ -47,7 +47,7 @@ public class InputInvoiceDataImportServiceImpl extends VatAbstractService { ...@@ -47,7 +47,7 @@ public class InputInvoiceDataImportServiceImpl extends VatAbstractService {
} }
private Page<InputInvoice> get(String code, int period, int page, int size) { private Page<InputInvoice> get(String code, int period, int page, int size) {
PageImpl<InputInvoice> pageInput; PageImpl<InputInvoice> pageInput = null;
try (CloseableHttpClient httpclient = HttpClients.createDefault();) { try (CloseableHttpClient httpclient = HttpClients.createDefault();) {
HttpGet httpget = new HttpGet("http://localhost:8089/input_invoices?page=" + page + "&size=" + size HttpGet httpget = new HttpGet("http://localhost:8089/input_invoices?page=" + page + "&size=" + size
+ "&code=" + code + "&period=" + period); + "&code=" + code + "&period=" + period);
...@@ -59,7 +59,7 @@ public class InputInvoiceDataImportServiceImpl extends VatAbstractService { ...@@ -59,7 +59,7 @@ public class InputInvoiceDataImportServiceImpl extends VatAbstractService {
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
return null; return pageInput;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment