定时任务问题修复
This commit is contained in:
@@ -117,7 +117,7 @@ public class CommunicateServiceImpl implements CommunicateService {
|
||||
if (floatList == 0) {
|
||||
inter.setOnlineRate(3.14159f);
|
||||
} else {
|
||||
inter.setOnlineRate(Float.parseFloat(decimalFormat.format(floatList * 100)));
|
||||
inter.setOnlineRate(Float.parseFloat(decimalFormat.format(floatList)));
|
||||
}
|
||||
deviceOnlineDataList.add(inter);
|
||||
}
|
||||
|
||||
@@ -144,7 +144,7 @@ public class DeviceAbnormaStatisticsServiceImpl implements DeviceAbnormalStatist
|
||||
topMsg.setOfftimeFlag(0);
|
||||
topMsg.setComOutCount(1);
|
||||
topMsg.setComOutDescription(DateUtil.beginOfDay(DateUtil.parse(param.getTime()))+"至"+devEntry.getValue().get(0).getUpdateTime());
|
||||
} else if (new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(devEntry.getValue().get(0).getUpdateTime()).before(DateUtil.beginOfDay(DateUtil.parse(param.getTime())))) {
|
||||
} else {
|
||||
topMsg.setOfftimeFlag(1);
|
||||
topMsg.setComOutCount(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user