天气api参数调整,虫情设备图片数据获取等
This commit is contained in:
@ -26,10 +26,12 @@
|
||||
<result property="status" column="status" />
|
||||
<result property="saveTime" column="save_time" />
|
||||
<result property="realTime" column="real_time" />
|
||||
<result property="camera" column="camera" />
|
||||
<result property="pestPhotos" column="pest_photos" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDeviceRealtimedataWormsVo">
|
||||
select id, device_addr, rain, worm_flap, insecticide_tem, shake, lng, drying_flap, insecticide, move_worm, mode, drying, rain_flap, attract_worm, illum, drying_tem, lat, fill_light, status, save_time, real_time from iot_device_realtimedata_worms
|
||||
select id, device_addr, rain, worm_flap, insecticide_tem, shake, lng, drying_flap, insecticide, move_worm, mode, drying, rain_flap, attract_worm, illum, drying_tem, lat, fill_light, status, save_time, real_time, camera, pest_photos from iot_device_realtimedata_worms
|
||||
</sql>
|
||||
|
||||
<select id="selectDeviceRealtimedataWormsList" parameterType="DeviceRealtimedataWorms" resultMap="DeviceRealtimedataWormsResult">
|
||||
@ -55,6 +57,8 @@
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="saveTime != null "> and save_time = #{saveTime}</if>
|
||||
<if test="realTime != null "> and real_time = #{realTime}</if>
|
||||
<if test="camera != null and camera != ''"> and camera = #{camera}</if>
|
||||
<if test="pestPhotos != null and pestPhotos != ''"> and pest_photos = #{pestPhotos}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@ -86,6 +90,8 @@
|
||||
<if test="status != null">status,</if>
|
||||
<if test="saveTime != null">save_time,</if>
|
||||
<if test="realTime != null">real_time,</if>
|
||||
<if test="camera != null">camera,</if>
|
||||
<if test="pestPhotos != null">pest_photos,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="deviceAddr != null">#{deviceAddr},</if>
|
||||
@ -108,6 +114,8 @@
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="saveTime != null">#{saveTime},</if>
|
||||
<if test="realTime != null">#{realTime},</if>
|
||||
<if test="camera != null">#{camera},</if>
|
||||
<if test="pestPhotos != null">#{pestPhotos},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@ -134,6 +142,8 @@
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="saveTime != null">save_time = #{saveTime},</if>
|
||||
<if test="realTime != null">real_time = #{realTime},</if>
|
||||
<if test="camera != null">camera = #{camera},</if>
|
||||
<if test="pestPhotos != null">pest_photos = #{pestPhotos},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
Reference in New Issue
Block a user