From 30fda09bf436b1ab9886cf37810f0b754eee9dc8 Mon Sep 17 00:00:00 2001 From: xins Date: Thu, 11 Apr 2024 17:38:44 +0800 Subject: [PATCH] =?UTF-8?q?2.0.6=201=E3=80=81=E4=BA=94=E6=A5=BC=E9=A2=86?= =?UTF-8?q?=E5=8F=96=E6=9F=9C=E4=BD=93=E4=BF=AE=E6=94=B9=202=E3=80=81?= =?UTF-8?q?=E4=BA=94=E6=A5=BC=E8=BF=94=E5=BA=93=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/hw/mes/api/RemoteMesService.java | 11 +++++++++++ .../hw/mes/api/factory/RemoteMesFallbackFactory.java | 5 +++++ .../com/hw/common/core/constant/MesConstants.java | 5 +++++ 3 files changed, 21 insertions(+) diff --git a/hw-api/hw-api-mes/src/main/java/com/hw/mes/api/RemoteMesService.java b/hw-api/hw-api-mes/src/main/java/com/hw/mes/api/RemoteMesService.java index f2d61aa..60eea7c 100644 --- a/hw-api/hw-api-mes/src/main/java/com/hw/mes/api/RemoteMesService.java +++ b/hw-api/hw-api-mes/src/main/java/com/hw/mes/api/RemoteMesService.java @@ -48,4 +48,15 @@ public interface RemoteMesService { public R> getStations(@RequestHeader(SecurityConstants.FROM_SOURCE) String source); + + /** + * 通过绑定条码查询条码信息 + * + * @param bindBarcode 绑定条码信息 + * @param source 请求来源 + * @return 结果 + */ + @GetMapping("/barcode/getBarcodeByBindBarcode/{bindBarcode}") + public R getBarcodeByBindBarcode(@PathVariable("bindBarcode") String bindBarcode, @RequestHeader(SecurityConstants.FROM_SOURCE) String source); + } diff --git a/hw-api/hw-api-mes/src/main/java/com/hw/mes/api/factory/RemoteMesFallbackFactory.java b/hw-api/hw-api-mes/src/main/java/com/hw/mes/api/factory/RemoteMesFallbackFactory.java index 8f5d2d1..cef592f 100644 --- a/hw-api/hw-api-mes/src/main/java/com/hw/mes/api/factory/RemoteMesFallbackFactory.java +++ b/hw-api/hw-api-mes/src/main/java/com/hw/mes/api/factory/RemoteMesFallbackFactory.java @@ -40,6 +40,11 @@ public class RemoteMesFallbackFactory implements FallbackFactory> getStations(String source) { return R.fail("获取工位列表信息失败:" + throwable.getMessage()); } + + @Override + public R getBarcodeByBindBarcode(String bindBarcode, String source) { + return R.fail("获取绑定条码信息失败:" + throwable.getMessage()); + } }; } } diff --git a/hw-common/hw-common-core/src/main/java/com/hw/common/core/constant/MesConstants.java b/hw-common/hw-common-core/src/main/java/com/hw/common/core/constant/MesConstants.java index c699160..d5ba9d1 100644 --- a/hw-common/hw-common-core/src/main/java/com/hw/common/core/constant/MesConstants.java +++ b/hw-common/hw-common-core/src/main/java/com/hw/common/core/constant/MesConstants.java @@ -82,4 +82,9 @@ public class MesConstants { /**条码信息绑定状态*/ public static final String MES_BARCODE_BIND_STATUS_BINDING= "1";//绑定 + + + public static final String MES_ASSIGN_TASK_KEY = "fifth_floor_assign_task";//五楼分配柜体任务到具体工位的key + + public static final String MES_ASSIGN_TASK_RESULT_KEY = "fifth_floor_assign_task_result";//五楼分配柜体任务到具体工位返库key }