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
10a6241f
Commit
10a6241f
authored
Oct 31, 2018
by
sherlock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug:app-overview:listView\cardView
parent
89ba4278
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
14 deletions
+21
-14
InputInvoiceDao.java
...c/main/java/pwc/taxtech/atms/vat/dao/InputInvoiceDao.java
+17
-10
JXFP.java
.../taxtech/atms/vat/service/impl/report/functions/JXFP.java
+4
-4
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/dao/InputInvoiceDao.java
View file @
10a6241f
...
...
@@ -9,7 +9,9 @@ import pwc.taxtech.atms.vat.entity.InputInvoiceExample;
import
pwc.taxtech.atms.vat.entity.InputVatInvoice
;
import
pwc.taxtech.atms.vat.entity.InputVatInvoiceExample
;
import
java.util.Calendar
;
import
java.util.List
;
import
java.util.stream.Collectors
;
@Service
public
class
InputInvoiceDao
{
...
...
@@ -19,29 +21,34 @@ 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
();
//
InputInvoiceExample.Criteria criteria1 = example.createCriteria();
if
(
period
!=
null
)
{
// 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()));
// }
criteria
.
andRZSQEqualTo
(
String
.
valueOf
(
period
));
criteria1
.
andRZSQEqualTo
(
String
.
valueOf
(
period
));
}
if
(
invoiceType
!=
null
)
{
criteria
.
andFPLXEqualTo
(
String
.
valueOf
(
invoiceType
));
criteria1
.
andFPLXEqualTo
(
String
.
valueOf
(
invoiceType
));
//
criteria1.andFPLXEqualTo(String.valueOf(invoiceType));
}
if
(
StringUtils
.
isNotBlank
(
notPass
))
{
String
unPass
=
"1"
;
criteria
.
andRZJGEqualTo
(
unPass
);
criteria1
.
andRZJGEqualTo
(
unPass
);
//
criteria1.andRZJGEqualTo(unPass);
}
else
if
(
StringUtils
.
isNotBlank
(
checkPass
)
&&
StringUtils
.
isNotBlank
(
scanPass
))
{
String
pass
=
"0"
;
criteria
.
andRZJGEqualTo
(
pass
);
criteria1
.
andRZJGEqualTo
(
pass
);
example
.
or
(
criteria1
);
//
criteria1.andRZJGEqualTo(pass);
//
example.or(criteria1);
}
return
inputInvoiceMapper
.
selectByExample
(
example
);
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
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/JXFP.java
View file @
10a6241f
...
...
@@ -51,10 +51,10 @@ public class JXFP extends FunctionBase implements FreeRefFunction {
}
int
certificationPeriod
=
getIntParam
(
args
[
0
],
ec
);
int
invoiceTypeParam
=
getIntParam
(
args
[
1
],
ec
);
int
authenticationType
=
getIntParam
(
args
[
2
],
ec
);
int
resultType
=
getIntParam
(
args
[
3
],
ec
);
int
period
=
getIntParam
(
args
[
4
],
ec
);
int
invoiceTypeParam
=
getIntParam
(
args
[
1
],
ec
);
// 客户情况只计算增值税专票
String
invoiceType
=
"004"
;
...
...
@@ -119,10 +119,10 @@ public class JXFP extends FunctionBase implements FreeRefFunction {
.
filter
(
a
->
DateUtils
.
strToDate
(
a
.
getRZSJ
()).
before
(
finalEndDate
))
.
collect
(
Collectors
.
toList
());
}
else
if
(
certificationPeriod
!=
99
)
{
calendar
.
set
(
formulaContext
.
getYear
(),
certificationPeriod
,
1
);
calendar
.
set
(
formulaContext
.
getYear
(),
certificationPeriod
-
1
,
1
);
startDate
=
calendar
.
getTime
();
calendar
.
set
(
formulaContext
.
getYear
(),
certificationPeriod
,
1
);
calendar
.
add
(
Calendar
.
MONTH
,
1
);
//
calendar.add(Calendar.MONTH, 1);
endDate
=
calendar
.
getTime
();
Date
finalEndDate1
=
endDate
;
Date
finalStartDate
=
startDate
;
...
...
@@ -145,7 +145,7 @@ public class JXFP extends FunctionBase implements FreeRefFunction {
inputInvoiceDataSourceDto
.
setInvoiceCode
(
x
.
getFPDM
());
inputInvoiceDataSourceDto
.
setInvoiceNumber
(
x
.
getFPHM
());
inputInvoiceDataSourceDto
.
setInvoiceType
(
Integer
.
parseInt
(
x
.
getFPLX
()));
inputInvoiceDataSourceDto
.
setPeriod
(
Integer
.
parseInt
(
x
.
getRZSQ
())
);
inputInvoiceDataSourceDto
.
setPeriod
(
period
);
inputInvoiceDataSourceDto
.
setSellerTaxNumber
(
x
.
getXFSH
());
inputInvoiceDataSourceDto
.
setName
(
Constant
.
DataSourceName
.
InputDetailInvoiceDataSource
);
inputInvoiceDataSourceDto
.
setOperationType
(
EnumOperationType
.
Single
.
getCode
());
...
...
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