|
@@ -20,10 +20,11 @@
|
20
|
20
|
<result property="brand" column="brand"/>
|
21
|
21
|
<result property="parkId" column="park_id"/>
|
22
|
22
|
<result property="warningTime" column="warning_time" />
|
|
23
|
+ <result property="video" column="video" />
|
23
|
24
|
</resultMap>
|
24
|
25
|
|
25
|
26
|
<sql id="selectEquipmentInfoVo">
|
26
|
|
- select equipment_id, type_id, room_id, building_id, area_id, equipment_name, lng_lat, raster_lng_lat, type_name, status, equip_code, device_status, brand, park_id,warning_time from equipment_info
|
|
27
|
+ select equipment_id, type_id, room_id, building_id, area_id, equipment_name, lng_lat, raster_lng_lat, type_name, status, equip_code, device_status, brand, park_id,warning_time,video from equipment_info
|
27
|
28
|
</sql>
|
28
|
29
|
|
29
|
30
|
<select id="selectEquipmentInfoList" parameterType="EquipmentInfo" resultMap="EquipmentInfoResult">
|
|
@@ -63,6 +64,7 @@
|
63
|
64
|
<if test="brand != null">brand,</if>
|
64
|
65
|
<if test="parkId != null">park_id,</if>
|
65
|
66
|
<if test="warningTime != null">warning_time,</if>
|
|
67
|
+ <if test="video != null and video != ''">video,</if>
|
66
|
68
|
</trim>
|
67
|
69
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
68
|
70
|
<if test="typeId != null">#{typeId},</if>
|
|
@@ -79,6 +81,7 @@
|
79
|
81
|
<if test="brand != null">#{brand},</if>
|
80
|
82
|
<if test="parkId != null">#{parkId},</if>
|
81
|
83
|
<if test="warningTime != null">#{warningTime},</if>
|
|
84
|
+ <if test="video != null and video != ''">#{video},</if>
|
82
|
85
|
</trim>
|
83
|
86
|
</insert>
|
84
|
87
|
|
|
@@ -98,6 +101,7 @@
|
98
|
101
|
device_status = #{deviceStatus},
|
99
|
102
|
brand = #{brand},
|
100
|
103
|
park_id = #{parkId}
|
|
104
|
+ <if test="video != null and video != ''">,video = #{video}</if>
|
101
|
105
|
<if test="warningTime != null">,warning_time = #{warningTime}</if>
|
102
|
106
|
</trim>
|
103
|
107
|
where equipment_id = #{equipmentId}
|