opt:优化报警前十
This commit is contained in:
@@ -151,12 +151,12 @@ public class GuhuashiSiteDeviceDriver extends AbstractOpcDeviceDriver implements
|
|||||||
}else {
|
}else {
|
||||||
log.info("检查:固化室{}反馈工艺运行中,开始通知lms开始固化", devicecode);
|
log.info("检查:固化室{}反馈工艺运行中,开始通知lms开始固化", devicecode);
|
||||||
this.instruction_require_time = date;
|
this.instruction_require_time = date;
|
||||||
//todo 临时注释
|
//todo 按现场要求暂时注释
|
||||||
// FeedBackTaskStatusRequest request = new FeedBackTaskStatusRequest();
|
//FeedBackTaskStatusRequest request = new FeedBackTaskStatusRequest();
|
||||||
// request.setDevice_code(this.devicecode);
|
//request.setDevice_code(this.devicecode);
|
||||||
// request.setType("1");
|
//request.setType("1");
|
||||||
// request.setState("4");
|
//request.setState("4");
|
||||||
// acsToWmsService.notify(request);
|
//acsToWmsService.notify(request);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//现场要测水分,手动更改
|
//现场要测水分,手动更改
|
||||||
|
|||||||
@@ -228,10 +228,12 @@ public class CockpitServiceImpl implements CockpitService {
|
|||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
//设备报警前十
|
//设备报警前十
|
||||||
CompletableFuture<List<Map<String, Object>>> task12 = CompletableFuture.supplyAsync(() -> cockpitMapper.ghStatistics(), pool);
|
CompletableFuture<JSONArray> task12 = CompletableFuture.supplyAsync(() -> {
|
||||||
task12.thenAccept((result) -> {
|
List<Map<String, Object>> result=cockpitMapper.ghStatistics();
|
||||||
getHomeInfo.put("gh_statistics", result);
|
getHomeInfo.put("gh_statistics", result);
|
||||||
}).exceptionally((e) -> {
|
return null;
|
||||||
|
}, pool);
|
||||||
|
task11.exceptionally((e) -> {
|
||||||
log.error("设备报警前十: {}", e.getMessage(), e);
|
log.error("设备报警前十: {}", e.getMessage(), e);
|
||||||
getHomeInfo.put("gh_statistics", null);
|
getHomeInfo.put("gh_statistics", null);
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user