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 }