Commit 5df4192f by guojuxing

发票详情:不再去去开票户数据,而是gic后台填写的数据

parent 3e32ae12
...@@ -134,23 +134,24 @@ public class InvoiceManageController { ...@@ -134,23 +134,24 @@ public class InvoiceManageController {
if (invoiceResult.isSuccess()) { if (invoiceResult.isSuccess()) {
InvoiceManageDTO invoice = invoiceResult.getResult(); InvoiceManageDTO invoice = invoiceResult.getResult();
InvoiceManagerDetailVO vo = EntityUtil.changeEntityNew(InvoiceManagerDetailVO.class, invoice); InvoiceManagerDetailVO vo = EntityUtil.changeEntityNew(InvoiceManagerDetailVO.class, invoice);
ServiceResponse<InvoiceAccountDTO> accountResult; //不再去去开票户数据,而是gic后台填写的数据
if (invoice.getInvoicerId() != null) { // ServiceResponse<InvoiceAccountDTO> accountResult;
accountResult = invoiceAccountApiService.getById(invoice.getInvoicerId()); // if (invoice.getInvoicerId() != null) {
} else { // accountResult = invoiceAccountApiService.getById(invoice.getInvoicerId());
accountResult = invoiceAccountApiService.getEnable(); // } else {
} // accountResult = invoiceAccountApiService.getEnable();
if (accountResult.isSuccess()) { // }
InvoiceAccountDTO account = accountResult.getResult(); // if (accountResult.isSuccess()) {
vo.setAccountName(account.getAccountName()); // InvoiceAccountDTO account = accountResult.getResult();
vo.setAccountPhone(account.getAccountPhone()); // vo.setAccountName(account.getAccountName());
vo.setAddress(account.getAddress()); // vo.setAccountPhone(account.getAccountPhone());
vo.setBank(account.getBank()); // vo.setAddress(account.getAddress());
vo.setBankAccount(account.getBankAccount()); // vo.setBank(account.getBank());
vo.setTaxNumberOfInvoice(account.getTaxNumber()); // vo.setBankAccount(account.getBankAccount());
} else { // vo.setTaxNumberOfInvoice(account.getTaxNumber());
return EnterpriseRestResponse.failure(accountResult); // } else {
} // return EnterpriseRestResponse.failure(accountResult);
// }
return RestResponse.success(vo); return RestResponse.success(vo);
} else { } else {
return EnterpriseRestResponse.failure(invoiceResult); return EnterpriseRestResponse.failure(invoiceResult);
......
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