From 459b3ff8e3c96a6a528857baa8752cf2f6d5449d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=85=B4=E7=90=B3?= <1911390090@qq.com> Date: Thu, 25 Apr 2024 18:49:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B0=94=E8=B1=A1=E9=A2=84=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DcMeteorologicalDetectorController.java | 8 ++++++++ .../domain/DcMeteorologicalDetectorData.java | 4 ++++ .../DcMeteorologicalDetectorDataMapper.java | 2 ++ .../IDcMeteorologicalDetectorDataService.java | 2 ++ .../DcMeteorologicalDetectorDataServiceImpl.java | 5 +++++ .../DcMeteorologicalDetectorDataMapper.xml | 15 +++++++++++++++ 6 files changed, 36 insertions(+) diff --git a/zc-business/src/main/java/com/zc/business/controller/DcMeteorologicalDetectorController.java b/zc-business/src/main/java/com/zc/business/controller/DcMeteorologicalDetectorController.java index 7fcfdea9..4eaaf8d2 100644 --- a/zc-business/src/main/java/com/zc/business/controller/DcMeteorologicalDetectorController.java +++ b/zc-business/src/main/java/com/zc/business/controller/DcMeteorologicalDetectorController.java @@ -39,4 +39,12 @@ public class DcMeteorologicalDetectorController extends BaseController { List list = dcMeteorologicalDetectorDataService.selectlistAll(dcMeteorologicalDetectorData); return getDataTable(list); } + @ApiOperation("能见度异常信息") + @GetMapping("/listVisibility") + public TableDataInfo listVisibility(DcMeteorologicalDetectorData dcMeteorologicalDetectorData) + { + List list = dcMeteorologicalDetectorDataService.selectlistVisibility(dcMeteorologicalDetectorData); + return getDataTable(list); + } + } diff --git a/zc-business/src/main/java/com/zc/business/domain/DcMeteorologicalDetectorData.java b/zc-business/src/main/java/com/zc/business/domain/DcMeteorologicalDetectorData.java index 2910e341..a3608d70 100644 --- a/zc-business/src/main/java/com/zc/business/domain/DcMeteorologicalDetectorData.java +++ b/zc-business/src/main/java/com/zc/business/domain/DcMeteorologicalDetectorData.java @@ -121,6 +121,10 @@ public class DcMeteorologicalDetectorData extends BaseEntity @ApiModelProperty("状态") @TableField(exist = false) private String deviceState; + @ApiModelProperty("桩号范围") + @TableField(exist = false) + private String stakeMarkRange; + // "rainfall": 0, // "visibility": "05.000", // "remoteRoadSurfaceTemperature": 11.5, diff --git a/zc-business/src/main/java/com/zc/business/mapper/DcMeteorologicalDetectorDataMapper.java b/zc-business/src/main/java/com/zc/business/mapper/DcMeteorologicalDetectorDataMapper.java index ebbb2f0a..50cbebc2 100644 --- a/zc-business/src/main/java/com/zc/business/mapper/DcMeteorologicalDetectorDataMapper.java +++ b/zc-business/src/main/java/com/zc/business/mapper/DcMeteorologicalDetectorDataMapper.java @@ -65,4 +65,6 @@ public interface DcMeteorologicalDetectorDataMapper List> selectStatistics(String deviceName); List selectlistAll(DcMeteorologicalDetectorData dcMeteorologicalDetectorData); + + List selectlistVisibility(DcMeteorologicalDetectorData dcMeteorologicalDetectorData); } diff --git a/zc-business/src/main/java/com/zc/business/service/IDcMeteorologicalDetectorDataService.java b/zc-business/src/main/java/com/zc/business/service/IDcMeteorologicalDetectorDataService.java index 929f5b67..ca7cb92a 100644 --- a/zc-business/src/main/java/com/zc/business/service/IDcMeteorologicalDetectorDataService.java +++ b/zc-business/src/main/java/com/zc/business/service/IDcMeteorologicalDetectorDataService.java @@ -65,4 +65,6 @@ public interface IDcMeteorologicalDetectorDataService List> selectStatistics(String deviceName); List selectlistAll(DcMeteorologicalDetectorData dcMeteorologicalDetectorData); + + List selectlistVisibility(DcMeteorologicalDetectorData dcMeteorologicalDetectorData); } diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcMeteorologicalDetectorDataServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcMeteorologicalDetectorDataServiceImpl.java index dd5d6468..887d86a2 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcMeteorologicalDetectorDataServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcMeteorologicalDetectorDataServiceImpl.java @@ -110,4 +110,9 @@ public class DcMeteorologicalDetectorDataServiceImpl implements IDcMeteorologica public List selectlistAll(DcMeteorologicalDetectorData dcMeteorologicalDetectorData) { return dcMeteorologicalDetectorDataMapper.selectlistAll(dcMeteorologicalDetectorData); } + + @Override + public List selectlistVisibility(DcMeteorologicalDetectorData dcMeteorologicalDetectorData) { + return dcMeteorologicalDetectorDataMapper.selectlistVisibility(dcMeteorologicalDetectorData); + } } diff --git a/zc-business/src/main/resources/mapper/business/DcMeteorologicalDetectorDataMapper.xml b/zc-business/src/main/resources/mapper/business/DcMeteorologicalDetectorDataMapper.xml index abc7f38b..0e92a0e2 100644 --- a/zc-business/src/main/resources/mapper/business/DcMeteorologicalDetectorDataMapper.xml +++ b/zc-business/src/main/resources/mapper/business/DcMeteorologicalDetectorDataMapper.xml @@ -25,6 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + @@ -192,4 +193,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" d.device_type = 3 ORDER BY d.stake_mark ASC; + + \ No newline at end of file