|
@ -182,7 +182,7 @@ public class BigScreenServiceImpl implements BigScreenService { |
|
|
map.put("LastMonthFailureList", result); |
|
|
map.put("LastMonthFailureList", result); |
|
|
}).exceptionally((e) -> { |
|
|
}).exceptionally((e) -> { |
|
|
log.error("近一个月故障次数前5台设备: {}", e.getMessage(), e); |
|
|
log.error("近一个月故障次数前5台设备: {}", e.getMessage(), e); |
|
|
map.put("LastMonthFailureList", null); |
|
|
map.put("LastMonthFailureList", e.getMessage()); |
|
|
return null; |
|
|
return null; |
|
|
}); |
|
|
}); |
|
|
// TODO: 6、最近10次设备故障
|
|
|
// TODO: 6、最近10次设备故障
|
|
@ -197,7 +197,7 @@ public class BigScreenServiceImpl implements BigScreenService { |
|
|
map.put("LastTenFailureList", result); |
|
|
map.put("LastTenFailureList", result); |
|
|
}).exceptionally((e) -> { |
|
|
}).exceptionally((e) -> { |
|
|
log.error("最近10次设备故障: {}", e.getMessage(), e); |
|
|
log.error("最近10次设备故障: {}", e.getMessage(), e); |
|
|
map.put("LastTenFailureList", null); |
|
|
map.put("LastTenFailureList", e.getMessage()); |
|
|
return null; |
|
|
return null; |
|
|
}); |
|
|
}); |
|
|
// 7、压制码垛位情况显示
|
|
|
// 7、压制码垛位情况显示
|
|
@ -208,8 +208,7 @@ public class BigScreenServiceImpl implements BigScreenService { |
|
|
.getResultJSONArray(0); |
|
|
.getResultJSONArray(0); |
|
|
JSONObject devicesStatus = PointUpdateUtil.getDevicesStatus(res); |
|
|
JSONObject devicesStatus = PointUpdateUtil.getDevicesStatus(res); |
|
|
// JSONObject devicesStatus = null;
|
|
|
// JSONObject devicesStatus = null;
|
|
|
JSONArray data = ObjectUtil.isNotEmpty( |
|
|
JSONArray data = ObjectUtil.isNotEmpty(devicesStatus) ? devicesStatus.getJSONArray("data") : res; |
|
|
devicesStatus.getJSONArray("data")) ? devicesStatus.getJSONArray("data") : res; |
|
|
|
|
|
for (int i = 0; i < data.size(); i++) { |
|
|
for (int i = 0; i < data.size(); i++) { |
|
|
JSONObject jsonObject = data.getJSONObject(i); |
|
|
JSONObject jsonObject = data.getJSONObject(i); |
|
|
if (jsonObject.getInteger("move") == 1 |
|
|
if (jsonObject.getInteger("move") == 1 |
|
@ -235,7 +234,7 @@ public class BigScreenServiceImpl implements BigScreenService { |
|
|
map.put("StackingPositionList", result); |
|
|
map.put("StackingPositionList", result); |
|
|
}).exceptionally((e) -> { |
|
|
}).exceptionally((e) -> { |
|
|
log.error("码垛位情况显示: {}", e.getMessage(), e); |
|
|
log.error("码垛位情况显示: {}", e.getMessage(), e); |
|
|
map.put("StackingPositionList", null); |
|
|
map.put("StackingPositionList", e); |
|
|
return null; |
|
|
return null; |
|
|
}); |
|
|
}); |
|
|
// 8、压机信息显示
|
|
|
// 8、压机信息显示
|
|
@ -253,7 +252,7 @@ public class BigScreenServiceImpl implements BigScreenService { |
|
|
map.put("PressMachineList", result); |
|
|
map.put("PressMachineList", result); |
|
|
}).exceptionally((e) -> { |
|
|
}).exceptionally((e) -> { |
|
|
log.error("压机信息显示: {}", e.getMessage(), e); |
|
|
log.error("压机信息显示: {}", e.getMessage(), e); |
|
|
map.put("PressMachineList", null); |
|
|
map.put("PressMachineList", e.getMessage()); |
|
|
return null; |
|
|
return null; |
|
|
}); |
|
|
}); |
|
|
// 9、混料机信息显示
|
|
|
// 9、混料机信息显示
|
|
@ -373,7 +372,7 @@ public class BigScreenServiceImpl implements BigScreenService { |
|
|
map.put("SortAndPalletizingList", result); |
|
|
map.put("SortAndPalletizingList", result); |
|
|
}).exceptionally((e) -> { |
|
|
}).exceptionally((e) -> { |
|
|
log.error("分拣拆码垛: {}", e.getMessage(), e); |
|
|
log.error("分拣拆码垛: {}", e.getMessage(), e); |
|
|
map.put("SortAndPalletizingList", null); |
|
|
map.put("SortAndPalletizingList", e); |
|
|
return null; |
|
|
return null; |
|
|
}); |
|
|
}); |
|
|
// 15、机械手状态
|
|
|
// 15、机械手状态
|
|
|