Browse Source

异常天气:异常天气数值numerical_value

develop
王兴琳 9 months ago
parent
commit
e1e5433d6f
  1. 7
      zc-business/src/main/java/com/zc/business/domain/DcEventAbnormalWeather.java
  2. 7
      zc-business/src/main/resources/mapper/business/DcEventAbnormalWeatherMapper.xml

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

7
zc-business/src/main/resources/mapper/business/DcEventAbnormalWeatherMapper.xml

@ -9,10 +9,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="weatherSituation" column="weather_situation" />
<result property="emergencyLevel" column="emergency_level" />
<result property="endStakeMark" column="end_stake_mark" />
<result property="numericalValue" column="numerical_value" />
</resultMap>
<sql id="selectDcEventAbnormalWeatherVo">
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
</sql>
<select id="selectDcEventAbnormalWeatherList" parameterType="DcEventAbnormalWeather" resultMap="DcEventAbnormalWeatherResult">
@ -21,6 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="weatherSituation != null and weatherSituation != ''"> and weather_situation = #{weatherSituation}</if>
<if test="emergencyLevel != null "> and emergency_level = #{emergencyLevel}</if>
<if test="endStakeMark != null and endStakeMark != ''"> and end_stake_mark = #{endStakeMark}</if>
<if test="numericalValue != null and numericalValue != ''"> and numerical_value = #{numericalValue}</if>
</where>
</select>
@ -36,12 +38,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="weatherSituation != null and weatherSituation != ''">weather_situation,</if>
<if test="emergencyLevel != null">emergency_level,</if>
<if test="endStakeMark != null and endStakeMark != ''">end_stake_mark,</if>
<if test="numericalValue != null and numericalValue != ''">numerical_value,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="weatherSituation != null and weatherSituation != ''">#{weatherSituation},</if>
<if test="emergencyLevel != null">#{emergencyLevel},</if>
<if test="endStakeMark != null and endStakeMark != ''">#{endStakeMark},</if>
<if test="numericalValue != null and numericalValue != ''">#{numericalValue},</if>
</trim>
</insert>
@ -51,6 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="weatherSituation != null and weatherSituation != ''">weather_situation = #{weatherSituation},</if>
<if test="emergencyLevel != null">emergency_level = #{emergencyLevel},</if>
<if test="endStakeMark != null and endStakeMark != ''">end_stake_mark = #{endStakeMark},</if>
<if test="numericalValue != null and numericalValue != ''">numerical_value = #{numericalValue},</if>
</trim>
where id = #{id}
</update>

Loading…
Cancel
Save