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
79baf726
Commit
79baf726
authored
Sep 28, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dev] get output page
parent
00112873
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
17 deletions
+6
-17
OutputInvoiceController.java
.../pwc/taxtech/atms/controller/OutputInvoiceController.java
+2
-1
OutputInvoiceServiceImpl.java
...xtech/atms/vat/service/impl/OutputInvoiceServiceImpl.java
+4
-16
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/OutputInvoiceController.java
View file @
79baf726
...
...
@@ -13,6 +13,7 @@ import org.springframework.web.multipart.MultipartHttpServletRequest;
import
pwc.taxtech.atms.constant.enums.EnumModule
;
import
pwc.taxtech.atms.dpo.PagingResultDto
;
import
pwc.taxtech.atms.dto.vatdto.ImportOutputInvoiceDto
;
import
pwc.taxtech.atms.dto.vatdto.OutputInvoice
;
import
pwc.taxtech.atms.dto.vatdto.QueryEvidenceDto
;
import
pwc.taxtech.atms.service.IdentityService
;
import
pwc.taxtech.atms.thirdparty.ExcelUtil
;
...
...
@@ -48,7 +49,7 @@ public class OutputInvoiceController {
private
FileUploadAdapter
fileUploadAdapter
;
@RequestMapping
(
value
=
"queryOutputInvoiceList"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
PagingResultDto
<
Output
VATInvoiceInfoDto
>
queryOutputInvoiceList
(
@RequestBody
QueryOutputDto
queryDto
)
{
public
PagingResultDto
<
Output
Invoice
>
queryOutputInvoiceList
(
@RequestBody
QueryOutputDto
queryDto
)
{
return
outputInvoiceService
.
queryOutputInvoiceList
(
queryDto
);
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/OutputInvoiceServiceImpl.java
View file @
79baf726
...
...
@@ -15,12 +15,10 @@ import org.reflections.util.Utils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
pwc.taxtech.atms.common.CommonUtils
;
import
pwc.taxtech.atms.common.PagingList
;
import
pwc.taxtech.atms.constant.enums.EnumTbImportType
;
import
pwc.taxtech.atms.dpo.PagingResultDto
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.dto.vatdto.ImportOutputInvoiceDto
;
import
pwc.taxtech.atms.dto.vatdto.InputInvoice
;
import
pwc.taxtech.atms.dto.vatdto.OutputInvoice
;
import
pwc.taxtech.atms.dto.vatdto.QueryEvidenceDto
;
import
pwc.taxtech.atms.vat.dao.ImportFileMapper
;
...
...
@@ -53,18 +51,8 @@ public class OutputInvoiceServiceImpl extends VatAbstractService {
@Autowired
private
SqlSessionTemplate
dynamicSqlSessionTemplate
;
public
PagingResultDto
<
OutputVATInvoiceInfoDto
>
queryOutputInvoiceList
(
QueryOutputDto
queryDto
)
{
PagingResultDto
<
OutputVATInvoiceInfoDto
>
qResult
=
new
PagingResultDto
<>();
qResult
.
setPageInfo
(
queryDto
.
getPageInfo
());
qResult
.
setList
(
new
ArrayList
<>());
List
<
OutputVATInvoiceInfoDto
>
finalList
=
getQueryList
(
queryDto
);
qResult
.
getPageInfo
().
setTotalCount
(
finalList
.
size
());
if
(
finalList
.
size
()
>
0
)
{
PagingList
pagingList
=
new
PagingList
(
finalList
,
qResult
.
getPageInfo
());
qResult
.
setList
(
pagingList
.
getPagingList
());
}
return
qResult
;
public
PagingResultDto
<
OutputInvoice
>
queryOutputInvoiceList
(
QueryOutputDto
queryDto
)
{
return
get
(
""
,
queryDto
.
getPeriodStart
(),
queryDto
.
getPageInfo
().
getPageIndex
(),
queryDto
.
getPageInfo
().
getPageSize
());
}
private
PagingResultDto
<
OutputInvoice
>
get
(
String
code
,
int
period
,
int
page
,
int
size
)
{
...
...
@@ -121,7 +109,7 @@ public class OutputInvoiceServiceImpl extends VatAbstractService {
OutputVatInvoiceExample
example
=
new
OutputVatInvoiceExample
();
example
.
createCriteria
().
andPeriodIdEqualTo
(
period
.
intValue
());
dtoResult
.
setReturnCode
(
Long
.
valueOf
(
outputVATInvoiceMapper
.
countByExample
(
example
)).
intValue
());
}
else
{
}
else
{
dtoResult
.
setReturnCode
(
0
);
}
...
...
@@ -294,7 +282,7 @@ 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
);
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