|
|
|
@ -24,6 +24,7 @@
|
|
|
|
|
<result column="precipitation" jdbcType="REAL" property="precipitation" />
|
|
|
|
|
<result column="precipitation_Intensity" jdbcType="REAL" property="precipitationIntensity" />
|
|
|
|
|
<result column="radiation_Intensity" jdbcType="INTEGER" property="radiationIntensity" />
|
|
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
|
<!--
|
|
|
|
@ -99,7 +100,7 @@
|
|
|
|
|
id, term_id, update_time, comp_id, avg_wind_speed_10min, avg_wind_dir_10min, avg_wind_speed_1min,
|
|
|
|
|
avg_wind_dir_1min, max_wind_speed, extreme_wind_speed, standard_wind_speed, wind_direction,
|
|
|
|
|
air_temperature, humidity, air_pressure, precipitation, precipitation_Intensity,
|
|
|
|
|
radiation_Intensity
|
|
|
|
|
radiation_Intensity, create_time
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByExample" parameterType="com.shxy.xymanager_common.entity.WeathersExample" resultMap="BaseResultMap">
|
|
|
|
|
<!--
|
|
|
|
@ -160,15 +161,15 @@
|
|
|
|
|
avg_wind_dir_1min, max_wind_speed, extreme_wind_speed,
|
|
|
|
|
standard_wind_speed, wind_direction, air_temperature,
|
|
|
|
|
humidity, air_pressure, precipitation,
|
|
|
|
|
precipitation_Intensity, radiation_Intensity
|
|
|
|
|
)
|
|
|
|
|
precipitation_Intensity, radiation_Intensity,
|
|
|
|
|
create_time)
|
|
|
|
|
values (#{termId,jdbcType=INTEGER}, #{updateTime,jdbcType=BIGINT}, #{compId,jdbcType=VARCHAR},
|
|
|
|
|
#{avgWindSpeed10min,jdbcType=REAL}, #{avgWindDir10min,jdbcType=INTEGER}, #{avgWindSpeed1min,jdbcType=REAL},
|
|
|
|
|
#{avgWindDir1min,jdbcType=REAL}, #{maxWindSpeed,jdbcType=REAL}, #{extremeWindSpeed,jdbcType=REAL},
|
|
|
|
|
#{standardWindSpeed,jdbcType=REAL}, #{windDirection,jdbcType=REAL}, #{airTemperature,jdbcType=REAL},
|
|
|
|
|
#{humidity,jdbcType=INTEGER}, #{airPressure,jdbcType=REAL}, #{precipitation,jdbcType=REAL},
|
|
|
|
|
#{precipitationIntensity,jdbcType=REAL}, #{radiationIntensity,jdbcType=INTEGER}
|
|
|
|
|
)
|
|
|
|
|
#{precipitationIntensity,jdbcType=REAL}, #{radiationIntensity,jdbcType=INTEGER},
|
|
|
|
|
#{createTime,jdbcType=TIMESTAMP})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.Weathers">
|
|
|
|
|
<!--
|
|
|
|
@ -231,6 +232,9 @@
|
|
|
|
|
<if test="radiationIntensity != null">
|
|
|
|
|
radiation_Intensity,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
create_time,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="termId != null">
|
|
|
|
@ -284,6 +288,9 @@
|
|
|
|
|
<if test="radiationIntensity != null">
|
|
|
|
|
#{radiationIntensity,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<select id="countByExample" parameterType="com.shxy.xymanager_common.entity.WeathersExample" resultType="java.lang.Long">
|
|
|
|
@ -357,6 +364,9 @@
|
|
|
|
|
<if test="row.radiationIntensity != null">
|
|
|
|
|
radiation_Intensity = #{row.radiationIntensity,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="row.createTime != null">
|
|
|
|
|
create_time = #{row.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
<if test="example != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
@ -385,7 +395,8 @@
|
|
|
|
|
air_pressure = #{row.airPressure,jdbcType=REAL},
|
|
|
|
|
precipitation = #{row.precipitation,jdbcType=REAL},
|
|
|
|
|
precipitation_Intensity = #{row.precipitationIntensity,jdbcType=REAL},
|
|
|
|
|
radiation_Intensity = #{row.radiationIntensity,jdbcType=INTEGER}
|
|
|
|
|
radiation_Intensity = #{row.radiationIntensity,jdbcType=INTEGER},
|
|
|
|
|
create_time = #{row.createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
<if test="example != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
@ -448,6 +459,9 @@
|
|
|
|
|
<if test="radiationIntensity != null">
|
|
|
|
|
radiation_Intensity = #{radiationIntensity,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
|
|
</update>
|
|
|
|
@ -473,7 +487,8 @@
|
|
|
|
|
air_pressure = #{airPressure,jdbcType=REAL},
|
|
|
|
|
precipitation = #{precipitation,jdbcType=REAL},
|
|
|
|
|
precipitation_Intensity = #{precipitationIntensity,jdbcType=REAL},
|
|
|
|
|
radiation_Intensity = #{radiationIntensity,jdbcType=INTEGER}
|
|
|
|
|
radiation_Intensity = #{radiationIntensity,jdbcType=INTEGER},
|
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|