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
e166dbc0
Commit
e166dbc0
authored
Jul 26, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dev] output invoice get item list impl
parent
24f65265
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
OutputInvoiceController.java
.../pwc/taxtech/atms/controller/OutputInvoiceController.java
+6
-0
OutputInvoiceServiceImpl.java
...xtech/atms/vat/service/impl/OutputInvoiceServiceImpl.java
+8
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/OutputInvoiceController.java
View file @
e166dbc0
...
...
@@ -139,6 +139,12 @@ public class OutputInvoiceController {
return
ResponseEntity
.
ok
(
outputInvoiceService
.
getOutputInvoiceList
(
period
));
}
@RequestMapping
(
value
=
"queryOutputInvoiceItemList/{invoiceID}"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
ResponseEntity
QueryOutputInvoiceItemList
(
@PathVariable
String
invoiceID
)
{
return
ResponseEntity
.
ok
(
outputInvoiceService
.
QueryOutputInvoiceItemList
(
invoiceID
));
}
private
String
GetExtension
(
String
file
)
{
return
file
.
substring
(
file
.
lastIndexOf
(
"."
)
+
1
,
file
.
length
()
-
file
.
lastIndexOf
(
"."
));
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/OutputInvoiceServiceImpl.java
View file @
e166dbc0
...
...
@@ -17,6 +17,7 @@ import pwc.taxtech.atms.dto.vatdto.OutputVATInvoiceInfoDto;
import
pwc.taxtech.atms.dto.vatdto.QueryEvidenceDto
;
import
pwc.taxtech.atms.dto.vatdto.QueryOutputDto
;
import
pwc.taxtech.atms.vat.dao.ImportFileMapper
;
import
pwc.taxtech.atms.vat.dao.OutputVATInvoiceItemMapper
;
import
pwc.taxtech.atms.vat.entity.ImportFile
;
import
pwc.taxtech.atms.vat.entity.ImportFileExample
;
import
pwc.taxtech.atms.vat.entity.OutputVATInvoiceExample
;
...
...
@@ -265,4 +266,11 @@ public class OutputInvoiceServiceImpl extends VatAbstractService {
}
}
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
));
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