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
2bce78af
Commit
2bce78af
authored
Nov 19, 2018
by
eddie.woo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
d056124c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
InputInvoiceDao.java
...c/main/java/pwc/taxtech/atms/vat/dao/InputInvoiceDao.java
+9
-11
ReportGeneratorImpl.java
...wc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
+1
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/dao/InputInvoiceDao.java
View file @
2bce78af
...
...
@@ -21,13 +21,12 @@ public class InputInvoiceDao {
public
List
<
InputInvoice
>
getInputInvoice
(
Integer
period
,
String
invoiceType
,
String
checkPass
,
String
scanPass
,
String
notPass
)
{
InputInvoiceExample
example
=
new
InputInvoiceExample
();
InputInvoiceExample
.
Criteria
criteria
=
example
.
createCriteria
();
// InputInvoiceExample.Criteria criteria1 = example.createCriteria();
// if(period != null)
{
//
Calendar date = Calendar.getInstance();
//
String year = String.valueOf(date.get(Calendar.YEAR));
// criteria.andRZSQEqualTo(year + "-"
+ (period > 9 ? period.toString() : "0" + period.toString()));
//
}
if
(
period
!=
null
)
{
Calendar
date
=
Calendar
.
getInstance
();
String
year
=
String
.
valueOf
(
date
.
get
(
Calendar
.
YEAR
));
criteria
.
andRZSQEqualTo
(
year
+
(
period
>
9
?
period
.
toString
()
:
"0"
+
period
.
toString
()));
}
if
(
invoiceType
!=
null
)
{
criteria
.
andFPLXEqualTo
(
String
.
valueOf
(
invoiceType
));
...
...
@@ -46,10 +45,9 @@ public class InputInvoiceDao {
}
criteria
.
andFPZTNotEqualTo
(
"1"
);
// 过滤作废状态
List
<
InputInvoice
>
list
=
inputInvoiceMapper
.
selectByExample
(
example
).
stream
().
filter
(
x
->
{
return
x
.
getRZSQ
().
endsWith
(
"-"
+
(
period
.
intValue
()
>
9
?
period
.
toString
()
:
"0"
+
period
.
toString
()));
}).
collect
(
Collectors
.
toList
());
// return inputInvoiceMapper.selectByExample(example);
return
list
;
// List<InputInvoice> list = inputInvoiceMapper.selectByExample(example).stream().filter(x -> {
// return x.getRZSQ().endsWith("-" + (period.intValue() > 9 ? period.toString() : "0" + period.toString()));
// }).collect(Collectors.toList());
return
inputInvoiceMapper
.
selectByExample
(
example
);
}
}
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
View file @
2bce78af
...
...
@@ -177,7 +177,7 @@ public class ReportGeneratorImpl {
periodCellTemplateConfigMapper
.
updateByPrimaryKeySelective
(
periodCellTemplateConfig
);
}
String
regexNormalCell
=
"[A-Z]{1,2}((?!0)[0-9]{1,3})"
;
String
regexNormalCell
=
"[A-Z]{1,2}((?!0)[0-9]{1,3})"
;
// todo 这里原生引用计算废弃,改用BB
p
=
Pattern
.
compile
(
regexNormalCell
);
m
=
p
.
matcher
(
sourceFormula
);
while
(
m
.
find
())
{
...
...
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