From daf871472db332a28d55eeded2bae2869b7444b2 Mon Sep 17 00:00:00 2001 From: tqs <56479841@qq.com> Date: 星期六, 03 十二月 2022 16:14:24 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/controller/RgvController.java | 14 +------------- 1 files changed, 1 insertions(+), 13 deletions(-) diff --git a/src/main/java/com/zy/asrs/controller/RgvController.java b/src/main/java/com/zy/asrs/controller/RgvController.java index e50d1dc..e7c212b 100644 --- a/src/main/java/com/zy/asrs/controller/RgvController.java +++ b/src/main/java/com/zy/asrs/controller/RgvController.java @@ -145,23 +145,11 @@ StringBuilder str = new StringBuilder(); String s; int i = 0; - while((s = OutputQueue.CRN.poll()) != null && i <=10) { + while((s = OutputQueue.RGV.poll()) != null && i <=10) { str.append("\n").append(s); i++; } return R.ok().add(str.toString()); - } - - @GetMapping("/demo/status") - public R demoStatus(){ - List<Map<String, Object>> res = new ArrayList<>(); - for (RgvSlave rgvSlave : slaveProperties.getRgv()) { - Map<String, Object> map = new HashMap<>(); - map.put("rgvNo", rgvSlave.getId()); - map.put("demo", rgvSlave.getDemo()); - res.add(map); - } - return R.ok().add(res); } /****************************************************************/ -- Gitblit v1.9.1