From 3b93bddc8b5c396a87b77da2b1125abc5cb0564f Mon Sep 17 00:00:00 2001 From: Yangwl <1726150332@qq.com> Date: Fri, 11 Jul 2025 18:17:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=AE=A1=E7=90=86=E7=BB=BC?= =?UTF-8?q?=E5=90=88=E6=95=B0=E6=8D=AE=E7=95=8C=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/DeviceInterfaceController.java | 17 ++++++++++++++ .../device/mapper/DeviceInterfaceMapper.java | 2 ++ .../service/IDeviceInterfaceService.java | 2 ++ .../impl/DeviceInterfaceServiceImpl.java | 6 +++++ .../mapper/device/DeviceInterfaceMapper.xml | 23 ++++++++++++++++++- 5 files changed, 49 insertions(+), 1 deletion(-) diff --git a/op-modules/op-device/src/main/java/com/op/device/controller/DeviceInterfaceController.java b/op-modules/op-device/src/main/java/com/op/device/controller/DeviceInterfaceController.java index 8a9f4b817..c538a303b 100644 --- a/op-modules/op-device/src/main/java/com/op/device/controller/DeviceInterfaceController.java +++ b/op-modules/op-device/src/main/java/com/op/device/controller/DeviceInterfaceController.java @@ -90,6 +90,23 @@ public class DeviceInterfaceController { DynamicDataSourceContextHolder.poll(); } } + + /** + * 滚动图 + */ + @GetMapping("/getRepairWorkOrderCostTime") + public AjaxResult getRepairWorkOrderCostTime(EquOperation equOperation) { + DynamicDataSourceContextHolder.push(equOperation.getPoolName()); + try{ + + return deviceInterfaceService.getRepairWorkOrderCostTime(); + + }finally { + DynamicDataSourceContextHolder.poll(); + } + } + + /** * 获取设备信息 * diff --git a/op-modules/op-device/src/main/java/com/op/device/mapper/DeviceInterfaceMapper.java b/op-modules/op-device/src/main/java/com/op/device/mapper/DeviceInterfaceMapper.java index ccd9cc4b0..98a460350 100644 --- a/op-modules/op-device/src/main/java/com/op/device/mapper/DeviceInterfaceMapper.java +++ b/op-modules/op-device/src/main/java/com/op/device/mapper/DeviceInterfaceMapper.java @@ -90,4 +90,6 @@ public interface DeviceInterfaceMapper { List getworkFaultDesc(); Map getWave(); + + List getRepairWorkOrderCostTime(); } diff --git a/op-modules/op-device/src/main/java/com/op/device/service/IDeviceInterfaceService.java b/op-modules/op-device/src/main/java/com/op/device/service/IDeviceInterfaceService.java index 771f5378b..f93b7d42c 100644 --- a/op-modules/op-device/src/main/java/com/op/device/service/IDeviceInterfaceService.java +++ b/op-modules/op-device/src/main/java/com/op/device/service/IDeviceInterfaceService.java @@ -73,6 +73,8 @@ public interface IDeviceInterfaceService { AjaxResult getworkFaultDesc(); AjaxResult getWave(); + + AjaxResult getRepairWorkOrderCostTime(); // // AjaxResult getInspectionWorkOrder(EquOrder equOrder); // diff --git a/op-modules/op-device/src/main/java/com/op/device/service/impl/DeviceInterfaceServiceImpl.java b/op-modules/op-device/src/main/java/com/op/device/service/impl/DeviceInterfaceServiceImpl.java index 67a2b68a4..9825c11b0 100644 --- a/op-modules/op-device/src/main/java/com/op/device/service/impl/DeviceInterfaceServiceImpl.java +++ b/op-modules/op-device/src/main/java/com/op/device/service/impl/DeviceInterfaceServiceImpl.java @@ -306,4 +306,10 @@ public class DeviceInterfaceServiceImpl implements IDeviceInterfaceService { Map resultMap = deviceInterfaceMapper.getWave(); return success(resultMap); } + + @Override + public AjaxResult getRepairWorkOrderCostTime() { + List resultMap = deviceInterfaceMapper.getRepairWorkOrderCostTime(); + return success(resultMap); + } } diff --git a/op-modules/op-device/src/main/resources/mapper/device/DeviceInterfaceMapper.xml b/op-modules/op-device/src/main/resources/mapper/device/DeviceInterfaceMapper.xml index eae96455d..a61370461 100644 --- a/op-modules/op-device/src/main/resources/mapper/device/DeviceInterfaceMapper.xml +++ b/op-modules/op-device/src/main/resources/mapper/device/DeviceInterfaceMapper.xml @@ -450,10 +450,12 @@ +