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
c06aa2b1
Commit
c06aa2b1
authored
Mar 13, 2019
by
zhkwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CIT数据处理
parent
b0658e9d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
3 deletions
+16
-3
CitReportServiceImpl.java
...a/pwc/taxtech/atms/service/impl/CitReportServiceImpl.java
+1
-2
TemplateGroupServiceImpl.java
...c/taxtech/atms/service/impl/TemplateGroupServiceImpl.java
+3
-0
FormulaAgent.java
.../java/pwc/taxtech/atms/vat/service/impl/FormulaAgent.java
+9
-0
ReportGeneratorImpl.java
...wc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
+1
-1
cit-calculate-data.ctrl.js
...t/reduction/cit-calculate-data/cit-calculate-data.ctrl.js
+2
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/CitReportServiceImpl.java
View file @
c06aa2b1
...
...
@@ -183,12 +183,11 @@ public class CitReportServiceImpl extends BaseService {
@Override
public
void
run
()
{
try
{
updateConfig
(
projectId
,
periodParam
,
isMergeManualData
,
templates
,
genJob
);
// TODO 进行数据校验
DataValidation
(
periodParam
,
projectId
,
genJob
);
updateConfig
(
projectId
,
periodParam
,
isMergeManualData
,
templates
,
genJob
);
PeriodResources
resources
=
reportGenerator
.
getPeriodResources
(
projectId
,
periodParam
,
templates
.
stream
().
map
(
Template:
:
getId
).
collect
(
Collectors
.
toList
()));
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/TemplateGroupServiceImpl.java
View file @
c06aa2b1
...
...
@@ -361,6 +361,9 @@ public class TemplateGroupServiceImpl extends AbstractService {
Row
row
=
temp
.
getRow
(
j
);
for
(
int
k
=
row
.
getFirstCellNum
();
k
<
row
.
getLastCellNum
();
k
++){
Cell
cell
=
row
.
getCell
(
k
);
if
(
cell
==
null
)
{
continue
;
//todo cell == null 如何处理
}
cell
.
setCellType
(
CellType
.
STRING
);
if
(!
cell
.
getCellStyle
().
getLocked
()
&&
"${KeyIn}"
.
equalsIgnoreCase
(
cell
.
getStringCellValue
())){
cell
.
setCellValue
(
""
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/FormulaAgent.java
View file @
c06aa2b1
...
...
@@ -223,11 +223,20 @@ public class FormulaAgent {
double
rev
=
0.00
;
for
(
int
i
=
0
,
j
=
stringObjectMap
.
size
();
i
<
j
;
i
++)
{
if
(
i
==
1
)
{
if
(
stringObjectMap
.
get
(
i
).
get
(
StringUtil
.
underline2Camel
(
getField
))
==
null
){
rev
=
0.00
;
}
else
{
rev
=
Long
.
parseLong
(
String
.
valueOf
(
stringObjectMap
.
get
(
i
).
get
(
StringUtil
.
underline2Camel
(
getField
))));
}
}
else
{
if
(
stringObjectMap
.
get
(
i
).
get
(
StringUtil
.
underline2Camel
(
getField
))
==
null
){
rev
=
rev
+
0.00
;
}
else
{
rev
=
rev
+
Long
.
parseLong
(
String
.
valueOf
(
stringObjectMap
.
get
(
i
).
get
(
StringUtil
.
underline2Camel
(
getField
))));
}
}
}
return
rev
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
View file @
c06aa2b1
...
...
@@ -513,7 +513,7 @@ public class ReportGeneratorImpl {
new
BB
(
formulaContext
),
new
XXFP
(
formulaContext
),
new
GZSD
(
formulaContext
),
new
PC
(
formulaContext
)
,
new
JXFPMX
(
formulaContext
),
new
JXFP
(
formulaContext
),
new
PSUM
(
formulaContext
),
new
DFFS
(
formulaContext
),
new
JFFS
(
formulaContext
),
new
WPSR
(
formulaContext
),
new
WPNAME
(
formulaContext
),
new
WPTYPE
(
formulaContext
),
new
SUM2
(
formulaContext
),
new
SUM
(
formulaContext
),
new
RSUMIF
(
formulaContext
),
new
TABLESUMIF
(
formulaContext
)};
new
RSUMIF
(
formulaContext
),
new
TABLESUMIF
(
formulaContext
),
new
SUM
(
formulaContext
)};
UDFFinder
udfs
=
new
DefaultUDFFinder
(
functions
,
functionImpls
);
UDFFinder
udfToolpack
=
new
AggregatingUDFFinder
(
udfs
);
workbook
.
addToolPack
(
udfToolpack
);
...
...
atms-web/src/main/webapp/app/cit/reduction/cit-calculate-data/cit-calculate-data.ctrl.js
View file @
c06aa2b1
...
...
@@ -642,7 +642,9 @@ debugger;
}
var
getInitTaskStatus
=
function
(){
debugger
;
citReportService
.
getRunningJob
(
vatSessionService
.
project
.
id
,
0
).
then
(
function
(
result
)
{
debugger
;
if
(
result
.
data
&&
result
.
status
==
200
){
updateTasksStatus
(
result
.
data
);
if
(
result
.
data
.
jobStatus
==
'Begin'
||
result
.
data
.
jobStatus
==
'Running'
){
...
...
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