修复计算量BUG
This commit is contained in:
parent
2d7a3c9c69
commit
e56acbe1e6
@ -34,7 +34,7 @@ public class CalcJob implements Job {
|
|||||||
log.error("expression is null, calcModule={}", calcModule.getName());
|
log.error("expression is null, calcModule={}", calcModule.getName());
|
||||||
throw new JobExecutionException("expression is null");
|
throw new JobExecutionException("expression is null");
|
||||||
}
|
}
|
||||||
Map<String,Object> envs = expression.newEnv("G_DEVICES", cacheService.getEquipmentCache().getDevicesCache(), "G_WINDFARM");
|
Map<String,Object> envs = expression.newEnv("G_DEVICES", cacheService.getEquipmentCache().getDevicesCache());
|
||||||
Object result = expression.execute(envs);
|
Object result = expression.execute(envs);
|
||||||
sw.stop();
|
sw.stop();
|
||||||
log.debug("任务[{}]已执行,结果:{}, 耗时:{}秒", calcModule.getName(), result, sw.getTotalTimeMillis()/1000.0);
|
log.debug("任务[{}]已执行,结果:{}, 耗时:{}秒", calcModule.getName(), result, sw.getTotalTimeMillis()/1000.0);
|
||||||
|
Loading…
Reference in New Issue
Block a user