From e1e5433d6f3f2efaabaae7ebe0c218a74bfb9833 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=85=B4=E7=90=B3?= <1911390090@qq.com> Date: Mon, 26 Feb 2024 10:11:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E5=A4=A9=E6=B0=94=EF=BC=9A?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E5=A4=A9=E6=B0=94=E6=95=B0=E5=80=BCnumerical?= =?UTF-8?q?=5Fvalue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/zc/business/domain/DcEventAbnormalWeather.java | 7 ++++++- .../mapper/business/DcEventAbnormalWeatherMapper.xml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/zc-business/src/main/java/com/zc/business/domain/DcEventAbnormalWeather.java b/zc-business/src/main/java/com/zc/business/domain/DcEventAbnormalWeather.java index e1c4e173..a68a1bb3 100644 --- a/zc-business/src/main/java/com/zc/business/domain/DcEventAbnormalWeather.java +++ b/zc-business/src/main/java/com/zc/business/domain/DcEventAbnormalWeather.java @@ -48,8 +48,13 @@ public class DcEventAbnormalWeather extends BaseEntity /** 终止桩号 */ @ApiModelProperty("终止桩号") - private String endStakeMark; + /** 异常天气数值 */ + @ApiModelProperty("异常天气数值") + private String numericalValue; + + + @ApiModelProperty("事件信息实体") //事件信息表 @TableField(exist = false) diff --git a/zc-business/src/main/resources/mapper/business/DcEventAbnormalWeatherMapper.xml b/zc-business/src/main/resources/mapper/business/DcEventAbnormalWeatherMapper.xml index 4f489da5..8f40ec3b 100644 --- a/zc-business/src/main/resources/mapper/business/DcEventAbnormalWeatherMapper.xml +++ b/zc-business/src/main/resources/mapper/business/DcEventAbnormalWeatherMapper.xml @@ -9,10 +9,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + - select id, weather_situation, emergency_level, end_stake_mark from dc_event_abnormal_weather + select numerical_value,id, weather_situation, emergency_level, end_stake_mark from dc_event_abnormal_weather @@ -36,12 +38,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" weather_situation, emergency_level, end_stake_mark, + numerical_value, #{id}, #{weatherSituation}, #{emergencyLevel}, #{endStakeMark}, + #{numericalValue}, @@ -51,6 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" weather_situation = #{weatherSituation}, emergency_level = #{emergencyLevel}, end_stake_mark = #{endStakeMark}, + numerical_value = #{numericalValue}, where id = #{id}