Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
3193f8aa
Commit
3193f8aa
authored
Oct 15, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bugfix] fixed query output invoice detail impl
parent
f2e14ab7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
OutputInvoiceServiceImpl.java
...xtech/atms/vat/service/impl/OutputInvoiceServiceImpl.java
+11
-5
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/OutputInvoiceServiceImpl.java
View file @
3193f8aa
...
...
@@ -29,6 +29,7 @@ import pwc.taxtech.atms.dto.vatdto.QueryEvidenceDto;
import
pwc.taxtech.atms.entity.Organization
;
import
pwc.taxtech.atms.entity.OrganizationExample
;
import
pwc.taxtech.atms.entity.Project
;
import
pwc.taxtech.atms.invoice.OutputInvoiceDetailMapper
;
import
pwc.taxtech.atms.invoice.OutputInvoiceMapper
;
import
pwc.taxtech.atms.service.impl.Message
;
import
pwc.taxtech.atms.vat.dao.ImportFileMapper
;
...
...
@@ -66,6 +67,8 @@ public class OutputInvoiceServiceImpl {
private
ProjectMapper
projectMapper
;
@Autowired
private
OrganizationMapper
organizationMapper
;
@Autowired
private
OutputInvoiceDetailMapper
outputInvoiceDetailMapper
;
public
PageInfo
<
OutputInvoice
>
queryOutputInvoiceList
(
QueryOutputDto
queryDto
,
String
projectId
)
{
Project
project
=
projectMapper
.
selectByPrimaryKey
(
projectId
);
...
...
@@ -290,11 +293,14 @@ public class OutputInvoiceServiceImpl {
}
}
public
List
<
OutputVatInvoiceItem
>
QueryOutputInvoiceItemList
(
String
invoiceId
)
{
OutputVatInvoiceItemExample
example
=
new
OutputVatInvoiceItemExample
();
example
.
createCriteria
().
andInvoiceIdEqualTo
(
invoiceId
);
List
<
OutputVatInvoiceItem
>
result
=
outputVATInvoiceItemMapper
.
selectByExample
(
example
);
result
.
stream
().
sorted
(
Comparator
.
comparing
(
OutputVatInvoiceItem:
:
getSeqNo
));
public
List
<
OutputInvoiceDetail
>
QueryOutputInvoiceItemList
(
String
invoiceId
)
{
OutputInvoiceExample
example
=
new
OutputInvoiceExample
();
example
.
createCriteria
().
andIDEqualTo
(
invoiceId
);
OutputInvoice
outputInvoice
=
outputInvoiceMapper
.
selectByExample
(
example
).
get
(
0
);
OutputInvoiceDetailExample
detailExample
=
new
OutputInvoiceDetailExample
();
detailExample
.
createCriteria
().
andFPQQLSHEqualTo
(
outputInvoice
.
getFPQQLSH
());
List
<
OutputInvoiceDetail
>
result
=
outputInvoiceDetailMapper
.
selectByExample
(
detailExample
);
return
result
;
}
}
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