|
@@ -168,7 +168,7 @@ public class MonitorIndicatorRecordServiceImpl implements IMonitorIndicatorRecor
|
|
|
computeObjIndicatorData(projectDTO,lastComputeTime ,methodIdAndMethodDTO, objIdIndicatorId);
|
|
|
}catch (Exception e){
|
|
|
IndicatorComputeLog save = new IndicatorComputeLog();
|
|
|
- save.setLogInfo(e.getMessage());
|
|
|
+// save.setLogInfo(e.getMessage());
|
|
|
save.setProject(projectDTO.getProjectId());
|
|
|
int indexOf = objIdIndicatorId.indexOf("_");
|
|
|
String objId = objIdIndicatorId.substring(0, indexOf);
|
|
@@ -177,7 +177,7 @@ public class MonitorIndicatorRecordServiceImpl implements IMonitorIndicatorRecor
|
|
|
save.setObjId(objId);
|
|
|
save.setLogType(EnumComputeLogType.ComputeType.getCode());
|
|
|
save.setDataTime(lastComputeTime);
|
|
|
- save.setComputeRound(projectIndicatorCompute.getComputeRound());
|
|
|
+ save.setComputeRound(Long.getLong(projectIndicatorCompute==null?"1":projectIndicatorCompute.getComputeRound()+""));
|
|
|
save.setLogInfo(CommonUtils.getExceptionStackTrace(e));
|
|
|
save.setLogTime(new Date());
|
|
|
coredao.save(save);
|
|
@@ -229,7 +229,7 @@ public class MonitorIndicatorRecordServiceImpl implements IMonitorIndicatorRecor
|
|
|
* @return: java.util.Set<java.lang.String>
|
|
|
*/
|
|
|
private Set<String> getObjIdAndInfoCodeFromRules(List<AlarmRuleDTO> projectAlarmRules) {
|
|
|
- Set<String> objIdAndInfoCode = new HashSet<>();
|
|
|
+ Set<String> objIdAndInfoCode = new HashSet<String>();
|
|
|
for (AlarmRuleDTO projectAlarmRule : projectAlarmRules) {
|
|
|
List<String> objIds = projectAlarmRule.getObjIds();
|
|
|
if (CollectionUtils.isEmpty(objIds)) {
|