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
1d909abd
Commit
1d909abd
authored
Sep 03, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dev] fixed data source detail for bb current priod
parent
12497fd3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
ReportCellDataSourceDto.java
.../pwc/taxtech/atms/dto/vatdto/ReportCellDataSourceDto.java
+19
-0
BB.java
...wc/taxtech/atms/vat/service/impl/report/functions/BB.java
+6
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/ReportCellDataSourceDto.java
View file @
1d909abd
...
...
@@ -7,6 +7,7 @@ import pwc.taxtech.atms.vat.entity.CellData;
@Getter
public
class
ReportCellDataSourceDto
extends
FormulaDataSourceDto
{
String
tag
=
"BB"
;
Integer
year
;
Integer
period
;
Integer
columnIndex
;
...
...
@@ -56,6 +57,24 @@ public class ReportCellDataSourceDto extends FormulaDataSourceDto {
return
dataSource
;
}
public
static
ReportCellDataSourceDto
extractFromGroup
(
BBParasBo
bbParasBo
,
Integer
period
,
Integer
year
,
CellTemplatePerGroupDto
cellTemplateData
)
{
ReportCellDataSourceDto
dataSource
=
new
ReportCellDataSourceDto
();
dataSource
.
name
=
DataSourceName
.
ReportDataSource
;
dataSource
.
year
=
year
;
dataSource
.
period
=
period
;
dataSource
.
columnIndex
=
bbParasBo
.
getColumnIndex
()
-
1
;
dataSource
.
columnName
=
cellTemplateData
.
getColumnName
();
dataSource
.
rowIndex
=
bbParasBo
.
getRowIndex
()
-
1
;
dataSource
.
rowName
=
cellTemplateData
.
getRowName
();
dataSource
.
reportTemplateID
=
cellTemplateData
.
getReportTemplateID
();
dataSource
.
cellTemplateID
=
cellTemplateData
.
getCellTemplateID
()
+
""
;
dataSource
.
resultType
=
cellTemplateData
.
getResultType
();
dataSource
.
isOnlyManualInput
=
false
;
dataSource
.
reportName
=
bbParasBo
.
getReportCode
();
return
dataSource
;
}
public
void
fixedWithGroup
(
CellTemplatePerGroupDto
dto
)
{
cellTemplateID
=
dto
.
getCellTemplateID
();
rowName
=
dto
.
getRowName
();
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/BB.java
View file @
1d909abd
...
...
@@ -100,7 +100,12 @@ public class BB extends FunctionBase implements FreeRefFunction {
.
getCell
(
bo
.
getRowIndex
()
-
1
,
bo
.
getColumnIndex
()
-
1
));
bo
.
putPeriodCellTempate
(
formulaContext
.
getPeriod
(),
Long
.
parseLong
(
cellTemplateData
.
getCellTemplateID
()));
return
cellValue
=
new
BigDecimal
(
OperandResolver
.
coerceValueToDouble
(
eval
));
cellValue
=
new
BigDecimal
(
OperandResolver
.
coerceValueToDouble
(
eval
));
nullCellDto
=
ReportCellDataSourceDto
.
extractFromGroup
(
bo
,
formulaContext
.
getPeriod
(),
formulaContext
.
getYear
(),
cellTemplateData
);
nullCellDto
.
setAmount
(
cellValue
);
dataSource
.
add
(
nullCellDto
);
return
cellValue
;
}
// bo.disCount();
...
...
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