Commit 2895233b by hzc

修改对标运算时出现null异常(日志id没传,导致null

parent daea8d23
...@@ -97,6 +97,8 @@ public class BeforeCompareUnitCalActor extends AbstractActor{ ...@@ -97,6 +97,8 @@ public class BeforeCompareUnitCalActor extends AbstractActor{
//计算同期对标单元 //计算同期对标单元
StartCompareUnitCalMsg startCompareUnitCalMsg = new StartCompareUnitCalMsg( StartCompareUnitCalMsg startCompareUnitCalMsg = new StartCompareUnitCalMsg(
currentCompareUnitDef,code,isTest); currentCompareUnitDef,code,isTest);
startCompareUnitCalMsg.setCompCalLogId(compCalLogId);
ActorRef startCompareUnitCalActor = this.getContext().actorOf(Props.create( ActorRef startCompareUnitCalActor = this.getContext().actorOf(Props.create(
StartCompareUnitCalActor.class,()-> new StartCompareUnitCalActor(getSelf()))); StartCompareUnitCalActor.class,()-> new StartCompareUnitCalActor(getSelf())));
startCompareUnitCalActor.tell(startCompareUnitCalMsg, getSelf()); startCompareUnitCalActor.tell(startCompareUnitCalMsg, getSelf());
......
...@@ -182,6 +182,7 @@ public class DriveIndIdObjCalActor extends AbstractActor{ ...@@ -182,6 +182,7 @@ public class DriveIndIdObjCalActor extends AbstractActor{
"errorValue:"+indValue+";"+"paramEnv:"+env); "errorValue:"+indValue+";"+"paramEnv:"+env);
//日志记录 //日志记录
//运算失败 //运算失败
if(compCalLog!=null){
compCalLog.setStatus(0); compCalLog.setStatus(0);
String logInfo = compCalLog.getLogInfo(); String logInfo = compCalLog.getLogInfo();
if(StringUtils.isNotBlank(logInfo)) { if(StringUtils.isNotBlank(logInfo)) {
...@@ -195,9 +196,10 @@ public class DriveIndIdObjCalActor extends AbstractActor{ ...@@ -195,9 +196,10 @@ public class DriveIndIdObjCalActor extends AbstractActor{
"errorValue:"+indValue+";"+"paramEnv:"+env+"</n>"); "errorValue:"+indValue+";"+"paramEnv:"+env+"</n>");
} }
//保存日志 //保存日志
if(compCalLog!=null) {
compareUnitCalLogService.saveOrUndate(compCalLog); compareUnitCalLogService.saveOrUndate(compCalLog);
} }
} }
confirmList.add(baseIndValueMsg.getIsFinish()); confirmList.add(baseIndValueMsg.getIsFinish());
if (++numberOfConfirm >= indIdSize) {//子actor全部返回 if (++numberOfConfirm >= indIdSize) {//子actor全部返回
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment