1、安防告警时抓拍监控
This commit is contained in:
@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<resultMap type="com.fastbee.iot.model.anfang.UploadedPhotos" id="UploadedPhotosResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="photoPath" column="photo_path" />
|
||||
<result property="monitorPath" column="monitor_path" />
|
||||
<result property="imei" column="imei" />
|
||||
<result property="sn" column="sn" />
|
||||
<result property="lat" column="lat" />
|
||||
@ -18,10 +19,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectUploadedPhotosVo">
|
||||
select id, photo_path, imei, sn, lat, lng, temp, door_state, shake_state, upload_time from uploaded_photos
|
||||
select id, photo_path,monitor_path, imei, sn, lat, lng, temp, door_state, shake_state, upload_time from uploaded_photos
|
||||
</sql>
|
||||
|
||||
<select id="selectUploadedPhotosList" parameterType="com.fastbee.iot.model.anfang.UploadedPhotos" resultMap="UploadedPhotosResult">
|
||||
<select id="selectUploadedPhotosList" parameterType="com.fastbee.iot.model.anfang.UploadedPhotos"
|
||||
resultMap="UploadedPhotosResult">
|
||||
<include refid="selectUploadedPhotosVo"/>
|
||||
<where>
|
||||
<if test="photoPath != null and photoPath != ''"> and photo_path = #{photoPath}</if>
|
||||
@ -46,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
insert into uploaded_photos
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="photoPath != null and photoPath != ''">photo_path,</if>
|
||||
<if test="monitorPath != null and monitorPath != ''">monitor_path,</if>
|
||||
<if test="imei != null and imei != ''">imei,</if>
|
||||
<if test="sn != null">sn,</if>
|
||||
<if test="lat != null">lat,</if>
|
||||
@ -57,6 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="photoPath != null and photoPath != ''">#{photoPath},</if>
|
||||
<if test="monitorPath != null and monitorPath != ''">#{monitorPath},</if>
|
||||
<if test="imei != null and imei != ''">#{imei},</if>
|
||||
<if test="sn != null">#{sn},</if>
|
||||
<if test="lat != null">#{lat},</if>
|
||||
@ -72,6 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
update uploaded_photos
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="photoPath != null and photoPath != ''">photo_path = #{photoPath},</if>
|
||||
<if test="monitorPath != null and monitorPath != ''">monitor_path = #{monitorPath},</if>
|
||||
<if test="imei != null and imei != ''">imei = #{imei},</if>
|
||||
<if test="sn != null">sn = #{sn},</if>
|
||||
<if test="lat != null">lat = #{lat},</if>
|
||||
|
Reference in New Issue
Block a user