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();