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
9b4b919b
Commit
9b4b919b
authored
Jun 13, 2018
by
frank.xa.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new api inputInvoicePreviewList
add new api queryOutputInvoiceList fixed issues
parent
329be79c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
9 deletions
+21
-9
InputInvoiceImportController.java
...taxtech/atms/controller/InputInvoiceImportController.java
+2
-1
OutputInvoiceController.java
.../pwc/taxtech/atms/controller/OutputInvoiceController.java
+2
-1
InputInvoicePreviewQueryParam.java
...axtech/atms/dto/vatdto/InputInvoicePreviewQueryParam.java
+8
-0
InputVATInvoiceMapper.java
.../java/pwc/taxtech/atms/vat/dao/InputVATInvoiceMapper.java
+2
-1
OutputVATInvoiceMapper.xml
...urces/pwc/taxtech/atms/vat/dao/OutputVATInvoiceMapper.xml
+7
-6
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/InputInvoiceImportController.java
View file @
9b4b919b
...
...
@@ -2,6 +2,7 @@ package pwc.taxtech.atms.controller;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -17,7 +18,7 @@ public class InputInvoiceImportController {
InputInvoiceDataImportService
inputInvoiceDataImportService
;
@RequestMapping
(
value
=
"inputInvoicePreviewList"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
PagingResultDto
<
InputVATInvoiceDto
>
getInputInvoiceTreeViewData
(
InputInvoicePreviewQueryParam
paras
)
{
public
PagingResultDto
<
InputVATInvoiceDto
>
getInputInvoiceTreeViewData
(
@RequestBody
InputInvoicePreviewQueryParam
paras
)
{
return
inputInvoiceDataImportService
.
getInputInvoiceTreeViewData
(
paras
);
}
}
atms-api/src/main/java/pwc/taxtech/atms/controller/OutputInvoiceController.java
View file @
9b4b919b
...
...
@@ -2,6 +2,7 @@ package pwc.taxtech.atms.controller;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -18,7 +19,7 @@ public class OutputInvoiceController {
OutputInvoiceService
outputInvoiceService
;
@RequestMapping
(
value
=
"queryOutputInvoiceList"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
PagingResultDto
<
OutputVATInvoiceInfoDto
>
queryOutputInvoiceList
(
QueryOutputDto
queryDto
)
{
public
PagingResultDto
<
OutputVATInvoiceInfoDto
>
queryOutputInvoiceList
(
@RequestBody
QueryOutputDto
queryDto
)
{
return
outputInvoiceService
.
queryOutputInvoiceList
(
queryDto
);
}
}
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/InputInvoicePreviewQueryParam.java
View file @
9b4b919b
...
...
@@ -127,4 +127,12 @@ public class InputInvoicePreviewQueryParam {
public
void
setTaxAmountEnd
(
BigDecimal
taxAmountEnd
)
{
this
.
taxAmountEnd
=
taxAmountEnd
;
}
public
int
getCertificationStatus
()
{
return
certificationStatus
;
}
public
void
setCertificationStatus
(
int
certificationStatus
)
{
this
.
certificationStatus
=
certificationStatus
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/vat/dao/InputVATInvoiceMapper.java
View file @
9b4b919b
...
...
@@ -107,7 +107,7 @@ public interface InputVATInvoiceMapper extends MyVatMapper {
*/
int
updateByPrimaryKey
(
InputVATInvoice
record
);
int
getInputVATInvoiceCountByCondition
(
@Param
(
"paras"
)
InputInvoicePreviewQueryParam
param
);
long
getInputVATInvoiceCountByCondition
(
@Param
(
"paras"
)
InputInvoicePreviewQueryParam
param
);
List
<
InputVATInvoice
>
getInputVATInvoiceCountByConditionWithPaging
(
@Param
(
"paras"
)
InputInvoicePreviewQueryParam
param
,
@Param
(
"limitFrom"
)
int
limitFrom
);
}
\ No newline at end of file
atms-api/src/main/resources/pwc/taxtech/atms/vat/dao/OutputVATInvoiceMapper.xml
View file @
9b4b919b
...
...
@@ -520,14 +520,14 @@
LEFT JOIN OutputVATInvoiceItem oi
ON o.InvoiceID = oi.InvoiceID
WHERE 1=1
<if
test=
"queryDto.
P
eriodStart"
>
AND o.Period
>
=#{queryDto.P
eriodStart,jdbcType=VARCHAR}
<if
test=
"queryDto.
p
eriodStart"
>
AND o.Period
ID
>
=#{queryDto.p
eriodStart,jdbcType=VARCHAR}
</if>
<if
test=
"queryDto.
P
eriodEnd"
>
AND o.Period
<
=#{queryDto.P
eriodEnd,jdbcType=VARCHAR}
<if
test=
"queryDto.
p
eriodEnd"
>
AND o.Period
ID
<
=#{queryDto.p
eriodEnd,jdbcType=VARCHAR}
</if>
<if
test=
"queryDto.
ProductName!=null and queryDto.P
roductName!=''"
>
AND ProductName LIKE concat('%',#{query.
P
roductName,jdbcType=VARCHAR,'%'})
<if
test=
"queryDto.
productName!=null and queryDto.p
roductName!=''"
>
AND ProductName LIKE concat('%',#{query.
p
roductName,jdbcType=VARCHAR,'%'})
</if>
</select>
</mapper>
\ No newline at end of file
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