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
59f49ed5
Commit
59f49ed5
authored
Nov 20, 2018
by
sherlock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RZSJ -> RZSQ
parent
2bbf19ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
JXFP.java
.../taxtech/atms/vat/service/impl/report/functions/JXFP.java
+12
-2
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/JXFP.java
View file @
59f49ed5
...
...
@@ -14,6 +14,8 @@ import pwc.taxtech.atms.dto.vatdto.InputInvoiceDataSourceDto;
import
pwc.taxtech.atms.vat.entity.InputInvoice
;
import
java.math.BigDecimal
;
import
java.text.ParsePosition
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.Calendar
;
import
java.util.Collections
;
...
...
@@ -127,8 +129,8 @@ public class JXFP extends FunctionBase implements FreeRefFunction {
Date
finalEndDate1
=
endDate
;
Date
finalStartDate
=
startDate
;
inputInvoices
=
inputInvoices
.
stream
()
.
filter
(
a
->
DateUtils
.
strToDate
(
a
.
getRZSJ
()).
after
(
finalStartDate
)
&&
DateUtils
.
strToDate
(
a
.
getRZSJ
()).
before
(
finalEndDate1
))
.
filter
(
a
->
strToDate
(
a
.
getRZSQ
()).
after
(
finalStartDate
)
&&
strToDate
(
a
.
getRZSQ
()).
before
(
finalEndDate1
))
.
collect
(
Collectors
.
toList
());
}
}
...
...
@@ -188,4 +190,12 @@ public class JXFP extends FunctionBase implements FreeRefFunction {
formulaContext
.
getProjectId
());
return
NumberEval
.
ZERO
;
}
private
static
Date
strToDate
(
String
strDate
)
{
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyyMM"
);
ParsePosition
pos
=
new
ParsePosition
(
0
);
Date
strtodate
=
formatter
.
parse
(
strDate
,
pos
);
return
strtodate
;
}
}
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