Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-finance
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-platform-finance
Commits
5df4192f
Commit
5df4192f
authored
May 08, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发票详情:不再去去开票户数据,而是gic后台填写的数据
parent
3e32ae12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
17 deletions
+18
-17
InvoiceManageController.java
...m/gic/finance/web/controller/InvoiceManageController.java
+18
-17
No files found.
gic-platform-finance-web/src/main/java/com/gic/finance/web/controller/InvoiceManageController.java
View file @
5df4192f
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment