Commit 5df4192f by guojuxing

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

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