|
|
@ -146,26 +146,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|
|
|
|
|
<insert id="insertIntermediateWarehouseData" parameterType="DcMeteorologicalDetectorData" useGeneratedKeys="true" keyProperty="id"> |
|
|
|
insert into meteorological_detector_data |
|
|
|
<insert id="insertMiddleDatabaseDeviceData" parameterType="MdDeviceData" useGeneratedKeys="true" keyProperty="id"> |
|
|
|
insert into device_data |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
<if test="iotDeviceId != null">device_id,</if> |
|
|
|
<if test="temperature != null">temperature,</if> |
|
|
|
<if test="humidity != null">humidity,</if> |
|
|
|
<if test="precipitationType != null">precipitation_type,</if> |
|
|
|
<if test="rainfall != null">rainfall,</if> |
|
|
|
<if test="roadSurfaceStatus != null">road_surface_status,</if> |
|
|
|
<if test="waterFilmThickness != null">water_film_thickness,</if> |
|
|
|
update_time |
|
|
|
<if test="devNo != null">devNo,</if> |
|
|
|
<if test="devType != null">devType,</if> |
|
|
|
<if test="timeStamp != null">`timeStamp`,</if> |
|
|
|
<if test="expands != null">expands,</if> |
|
|
|
<if test="creatorUserId != null">CreatorUserId,</if> |
|
|
|
<if test="lastModificationTime != null">LastModificationTime,</if> |
|
|
|
<if test="lastModifierUserId != null">LastModifierUserId,</if> |
|
|
|
<if test="isDeleted != null">IsDeleted,</if> |
|
|
|
<if test="deleterUserId != null">DeleterUserId,</if> |
|
|
|
<if test="deletionTime != null">DeletionTime,</if> |
|
|
|
CreationTime |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="iotDeviceId != null">#{iotDeviceId},</if> |
|
|
|
<if test="temperature != null">#{temperature},</if> |
|
|
|
<if test="humidity != null">#{humidity},</if> |
|
|
|
<if test="precipitationType != null">#{precipitationType},</if> |
|
|
|
<if test="rainfall != null">#{rainfall},</if> |
|
|
|
<if test="roadSurfaceStatus != null">#{roadSurfaceStatus},</if> |
|
|
|
<if test="waterFilmThickness != null">#{waterFilmThickness},</if> |
|
|
|
<if test="devNo != null">#{devNo},</if> |
|
|
|
<if test="devType != null">#{devType},</if> |
|
|
|
<if test="timeStamp != null">#{timeStamp},</if> |
|
|
|
<if test="expands != null">#{expands},</if> |
|
|
|
<if test="creatorUserId != null">#{creatorUserId},</if> |
|
|
|
<if test="lastModificationTime != null">#{lastModificationTime},</if> |
|
|
|
<if test="isDeleted != null">#{isDeleted},</if> |
|
|
|
<if test="deleterUserId != null">#{deleterUserId},</if> |
|
|
|
<if test="deletionTime != null">#{deletionTime},</if> |
|
|
|
current_date |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|