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
49952f9e
Commit
49952f9e
authored
Apr 22, 2019
by
chase
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
ca1a6046
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
KPSR.java
.../taxtech/atms/vat/service/impl/report/functions/KPSR.java
+4
-4
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/KPSR.java
View file @
49952f9e
...
@@ -51,8 +51,8 @@ public class KPSR extends FunctionBase implements FreeRefFunction {
...
@@ -51,8 +51,8 @@ public class KPSR extends FunctionBase implements FreeRefFunction {
private
double
assembleData
(
String
revenueTypeName
,
List
<
OutputInvoiceDataSourceDto
>
contain
,
Integer
billType
,
Integer
amountType
,
OperationEvaluationContext
ec
)
{
private
double
assembleData
(
String
revenueTypeName
,
List
<
OutputInvoiceDataSourceDto
>
contain
,
Integer
billType
,
Integer
amountType
,
OperationEvaluationContext
ec
)
{
String
query
Date
=
formulaContext
.
getYear
()
+
(
formulaContext
.
getPeriod
()
<
10
?
(
"0"
+
formulaContext
.
getPeriod
())
:
(
formulaContext
.
getPeriod
()
+
""
));
String
query
Period
=
formulaContext
.
getYear
()
+
(
formulaContext
.
getPeriod
()
<
10
?
(
"0"
+
formulaContext
.
getPeriod
())
:
(
formulaContext
.
getPeriod
()
+
""
));
String
queryDate
=
formulaContext
.
getYear
()
+
"-"
+(
formulaContext
.
getPeriod
()
<
10
?
(
"0"
+
formulaContext
.
getPeriod
())
:
(
formulaContext
.
getPeriod
()
+
""
));
// List<String> revenueTypes = typeMappingList.stream()
// List<String> revenueTypes = typeMappingList.stream()
// .map(o -> o.getRevenueTypeName()).collect(Collectors.toList());
// .map(o -> o.getRevenueTypeName()).collect(Collectors.toList());
RevenueConfigExample
configExample
=
new
RevenueConfigExample
();
RevenueConfigExample
configExample
=
new
RevenueConfigExample
();
...
@@ -78,7 +78,7 @@ public class KPSR extends FunctionBase implements FreeRefFunction {
...
@@ -78,7 +78,7 @@ public class KPSR extends FunctionBase implements FreeRefFunction {
invoiceRecordExample
=
new
InvoiceRecordExample
();
invoiceRecordExample
=
new
InvoiceRecordExample
();
invoiceRecordExample
.
createCriteria
().
andRevenueCofIdIn
(
revenueTypeIds
)
invoiceRecordExample
.
createCriteria
().
andRevenueCofIdIn
(
revenueTypeIds
)
.
andProjectIdEqualTo
(
formulaContext
.
getProjectId
())
.
andProjectIdEqualTo
(
formulaContext
.
getProjectId
())
.
andPeriodEqualTo
(
Integer
.
valueOf
(
query
Date
))
.
andPeriodEqualTo
(
Integer
.
valueOf
(
query
Period
))
.
andTaxRateEqualTo
(
typeMapping
.
getTaxRate
())
.
andTaxRateEqualTo
(
typeMapping
.
getTaxRate
())
.
andDepartmentEqualTo
(
typeMapping
.
getOuName
())
.
andDepartmentEqualTo
(
typeMapping
.
getOuName
())
.
andInvoiceTypeEqualTo
(
InvoiceRecordEnum
.
InvoiceType
.
MAPPING
.
get
(
billType
));
.
andInvoiceTypeEqualTo
(
InvoiceRecordEnum
.
InvoiceType
.
MAPPING
.
get
(
billType
));
...
@@ -95,7 +95,7 @@ public class KPSR extends FunctionBase implements FreeRefFunction {
...
@@ -95,7 +95,7 @@ public class KPSR extends FunctionBase implements FreeRefFunction {
invoiceRecordExample
=
new
InvoiceRecordExample
();
invoiceRecordExample
=
new
InvoiceRecordExample
();
invoiceRecordExample
.
createCriteria
().
andModifyRevenueCofIdIn
(
revenueTypeIds
)
invoiceRecordExample
.
createCriteria
().
andModifyRevenueCofIdIn
(
revenueTypeIds
)
.
andProjectIdEqualTo
(
formulaContext
.
getProjectId
())
.
andProjectIdEqualTo
(
formulaContext
.
getProjectId
())
.
andPeriodEqualTo
(
Integer
.
valueOf
(
query
Date
))
.
andPeriodEqualTo
(
Integer
.
valueOf
(
query
Period
))
.
andTaxRateEqualTo
(
typeMapping
.
getTaxRate
())
.
andTaxRateEqualTo
(
typeMapping
.
getTaxRate
())
.
andDepartmentEqualTo
(
typeMapping
.
getOuName
())
.
andDepartmentEqualTo
(
typeMapping
.
getOuName
())
.
andInvoiceTypeEqualTo
(
InvoiceRecordEnum
.
InvoiceType
.
MAPPING
.
get
(
billType
));
.
andInvoiceTypeEqualTo
(
InvoiceRecordEnum
.
InvoiceType
.
MAPPING
.
get
(
billType
));
...
...
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