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
2895233b
Commit
2895233b
authored
Oct 23, 2020
by
hzc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改对标运算时出现null异常(日志id没传,导致null
parent
daea8d23
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
BeforeCompareUnitCalActor.java
...tors/akka/actor/indicators/BeforeCompareUnitCalActor.java
+2
-0
DriveIndIdObjCalActor.java
...dicators/akka/actor/indicators/DriveIndIdObjCalActor.java
+16
-14
No files found.
src/main/java/com/keymobile/indicators/akka/actor/indicators/BeforeCompareUnitCalActor.java
View file @
2895233b
...
...
@@ -97,6 +97,8 @@ public class BeforeCompareUnitCalActor extends AbstractActor{
//计算同期对标单元
StartCompareUnitCalMsg
startCompareUnitCalMsg
=
new
StartCompareUnitCalMsg
(
currentCompareUnitDef
,
code
,
isTest
);
startCompareUnitCalMsg
.
setCompCalLogId
(
compCalLogId
);
ActorRef
startCompareUnitCalActor
=
this
.
getContext
().
actorOf
(
Props
.
create
(
StartCompareUnitCalActor
.
class
,()->
new
StartCompareUnitCalActor
(
getSelf
())));
startCompareUnitCalActor
.
tell
(
startCompareUnitCalMsg
,
getSelf
());
...
...
src/main/java/com/keymobile/indicators/akka/actor/indicators/DriveIndIdObjCalActor.java
View file @
2895233b
...
...
@@ -182,22 +182,24 @@ public class DriveIndIdObjCalActor extends AbstractActor{
"errorValue:"
+
indValue
+
";"
+
"paramEnv:"
+
env
);
//日志记录
//运算失败
compCalLog
.
setStatus
(
0
);
String
logInfo
=
compCalLog
.
getLogInfo
(
);
if
(
StringUtils
.
isNotBlank
(
logInfo
))
{
logInfo
+=
"替换公式值出错:driveIndId:"
+
driveIndId
+
";"
+
"formula:"
+
driveIndFormula
+
";"
+
"errorValue:"
+
indValue
+
";"
+
"paramEnv:"
+
env
+
"</n>"
;
compCalLog
.
setLogInfo
(
logInfo
)
;
}
else
{
compCalLog
.
setLogInfo
(
"替换公式值出错:driveIndId:"
+
driveIndId
+
";"
+
"formula:"
+
driveIndFormula
+
";"
+
"errorValue:"
+
indValue
+
";"
+
"paramEnv:"
+
env
+
"</n>"
);
}
//保存日志
if
(
compCalLog
!=
null
)
{
if
(
compCalLog
!=
null
){
compCalLog
.
setStatus
(
0
);
String
logInfo
=
compCalLog
.
getLogInfo
();
if
(
StringUtils
.
isNotBlank
(
logInfo
))
{
logInfo
+=
"替换公式值出错:driveIndId:"
+
driveIndId
+
";"
+
"formula:"
+
driveIndFormula
+
";"
+
"errorValue:"
+
indValue
+
";"
+
"paramEnv:"
+
env
+
"</n>"
;
compCalLog
.
setLogInfo
(
logInfo
);
}
else
{
compCalLog
.
setLogInfo
(
"替换公式值出错:driveIndId:"
+
driveIndId
+
";"
+
"formula:"
+
driveIndFormula
+
";"
+
"errorValue:"
+
indValue
+
";"
+
"paramEnv:"
+
env
+
"</n>"
);
}
//保存日志
compareUnitCalLogService
.
saveOrUndate
(
compCalLog
);
}
}
confirmList
.
add
(
baseIndValueMsg
.
getIsFinish
());
if
(++
numberOfConfirm
>=
indIdSize
)
{
//子actor全部返回
...
...
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