Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
indicators
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangkb
indicators
Commits
9a55dcda
Commit
9a55dcda
authored
Aug 04, 2020
by
张祺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加处理数据项值计算错误处理
parent
1d320ae0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
TaskServiceImpl.java
...le/indicators/service/dataenter/impl/TaskServiceImpl.java
+16
-4
No files found.
src/main/java/com/keymobile/indicators/service/dataenter/impl/TaskServiceImpl.java
View file @
9a55dcda
...
@@ -465,11 +465,23 @@ public class TaskServiceImpl implements TaskService {
...
@@ -465,11 +465,23 @@ public class TaskServiceImpl implements TaskService {
value
.
setObjType
(
groupObj
.
getObjType
());
value
.
setObjType
(
groupObj
.
getObjType
());
value
.
setTaskId
(
task
.
getId
());
value
.
setTaskId
(
task
.
getId
());
if
(
needLast
)
{
if
(
needLast
)
{
String
oldValue
=
CalculateUtils
.
calculateFormula
(
indicator
.
getIndFormula
(),
lastDataMap
);
try
{
value
.
setIndLastValue
(
oldValue
);
String
oldValue
=
CalculateUtils
.
calculateFormula
(
indicator
.
getIndFormula
(),
lastDataMap
);
value
.
setIndLastValue
(
oldValue
);
}
catch
(
Exception
e
)
{
log
.
error
(
"错误的同期值计算indId={}, indName={}, formula={}, valueTime={}"
,
indicator
.
getIndId
(),
indicator
.
getIndName
(),
indicator
.
getIndFormula
(),
lastVt
);
continue
;
}
}
try
{
String
nowValue
=
CalculateUtils
.
calculateFormula
(
indicator
.
getIndFormula
(),
dataMap
);
value
.
setIndValue
(
nowValue
);
}
catch
(
Exception
e
)
{
log
.
error
(
"错误的本期值计算indId={}, indName={}, formula={}, valueTime={}"
,
indicator
.
getIndId
(),
indicator
.
getIndName
(),
indicator
.
getIndFormula
(),
vt
);
continue
;
}
}
String
nowValue
=
CalculateUtils
.
calculateFormula
(
indicator
.
getIndFormula
(),
dataMap
);
value
.
setIndValue
(
nowValue
);
newValues
.
add
(
value
);
newValues
.
add
(
value
);
generateIndData
(
task
,
vt
,
lastVt
,
value
,
needLast
,
datas
);
generateIndData
(
task
,
vt
,
lastVt
,
value
,
needLast
,
datas
);
...
...
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