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