From 91d0fa441df0089f07232aecc69beebc7b6fd001 Mon Sep 17 00:00:00 2001 From: anthonyywj2 <353682448@qq.com> Date: Tue, 25 Oct 2022 10:04:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A0=B9=E6=8D=AEUUID?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/controller/device/UdidlDeviceController.java | 7 +++++++ .../udidl/admin/service/dataSync/DeviceSyncService.java | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/src/main/java/com/glxp/udidl/admin/controller/device/UdidlDeviceController.java b/src/main/java/com/glxp/udidl/admin/controller/device/UdidlDeviceController.java index c664478..45b6164 100644 --- a/src/main/java/com/glxp/udidl/admin/controller/device/UdidlDeviceController.java +++ b/src/main/java/com/glxp/udidl/admin/controller/device/UdidlDeviceController.java @@ -129,6 +129,13 @@ public class UdidlDeviceController { return deviceSyncService.searchDlByDi(deviceId); } + @AuthRuleAnnotation("udidl_udidlByUuid_all") + @GetMapping("udidl/device/searchDlByUuid") + public BaseResponse searchDlByUuid(String uuid) { + return deviceSyncService.searchDlByUuid(uuid); + } + + /** * 获取产品标识详情 * diff --git a/src/main/java/com/glxp/udidl/admin/service/dataSync/DeviceSyncService.java b/src/main/java/com/glxp/udidl/admin/service/dataSync/DeviceSyncService.java index 0ed9683..fd67560 100644 --- a/src/main/java/com/glxp/udidl/admin/service/dataSync/DeviceSyncService.java +++ b/src/main/java/com/glxp/udidl/admin/service/dataSync/DeviceSyncService.java @@ -178,6 +178,14 @@ public class DeviceSyncService { return ResultVOUtils.success(productInfoEntityList); } + public BaseResponse searchDlByUuid(String uuid) { + ProductInfoFilterRequest productInfoFilterRequest = new ProductInfoFilterRequest(); + productInfoFilterRequest.setUuid(uuid); + List productInfoEntityList = productInfoService.findAll(productInfoFilterRequest); + return ResultVOUtils.success(productInfoEntityList); + } + + public void dlHistory(DataSetSingleResult result1) { DataSetSingleHistoryResult result = new DataSetSingleHistoryResult();