|
@@ -6,7 +6,7 @@
|
|
|
|
|
|
<resultMap type="SysCamera" id="SysCameraResult">
|
|
|
<result property="id" column="id"/>
|
|
|
- <result property="ascriptionStation" column="ascription_station"/>
|
|
|
+ <result property="cameraName" column="camera_name"/>
|
|
|
<result property="policeId" column="police_id"/>
|
|
|
<result property="address" column="address"/>
|
|
|
<result property="longitude" column="longitude"/>
|
|
@@ -19,7 +19,7 @@
|
|
|
<result property="policeId" column="police_id"/>
|
|
|
<result property="policeName" column="police_name"/>
|
|
|
<result property="position" column="position"/>
|
|
|
- <result property="ascriptionStation" column="ascription_station"/>
|
|
|
+ <result property="cameraName" column="camera_name"/>
|
|
|
<result property="address" column="address"/>
|
|
|
<result property="longitude" column="longitude"/>
|
|
|
<result property="latitude" column="latitude"/>
|
|
@@ -27,7 +27,7 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectSysCameraVo">
|
|
|
- select id, ascription_station, address, longitude, latitude, build_type
|
|
|
+ select id, cameraName, address, longitude, latitude, build_type
|
|
|
from sys_camera
|
|
|
</sql>
|
|
|
|
|
@@ -35,7 +35,7 @@
|
|
|
SELECT
|
|
|
a.id,
|
|
|
b.police_name,
|
|
|
- a.ascription_station,
|
|
|
+ a.camera_name,
|
|
|
a.address,
|
|
|
a.longitude,
|
|
|
a.latitude,
|
|
@@ -44,8 +44,8 @@
|
|
|
sys_camera a
|
|
|
left join sys_police_station b on a.police_id = b.id
|
|
|
<where>
|
|
|
- <if test="ascriptionStation != null and ascriptionStation != ''">
|
|
|
- and ascription_station = #{ascriptionStation}
|
|
|
+ <if test="cameraName != null and cameraName != ''">
|
|
|
+ and camera_name = #{cameraName}
|
|
|
</if>
|
|
|
<if test="policeName != null ">and b.police_name = #{policeName}</if>
|
|
|
<if test="longitude != null and longitude != ''">
|
|
@@ -64,7 +64,7 @@
|
|
|
SELECT
|
|
|
a.id,
|
|
|
b.police_name,
|
|
|
- a.ascription_station,
|
|
|
+ a.camera_name,
|
|
|
a.address,
|
|
|
a.longitude,
|
|
|
a.latitude,
|
|
@@ -82,7 +82,7 @@
|
|
|
</if>
|
|
|
<if test="policeId != null">police_id,
|
|
|
</if>
|
|
|
- <if test="ascriptionStation != null">ascription_station,
|
|
|
+ <if test="cameraName != null">camera_name,
|
|
|
</if>
|
|
|
<if test="address != null">address,
|
|
|
</if>
|
|
@@ -98,7 +98,7 @@
|
|
|
</if>
|
|
|
<if test="policeId != null">#{policeId},
|
|
|
</if>
|
|
|
- <if test="ascriptionStation != null">#{ascriptionStation},
|
|
|
+ <if test="cameraName != null">#{cameraName},
|
|
|
</if>
|
|
|
<if test="address != null">#{address},
|
|
|
</if>
|
|
@@ -115,8 +115,8 @@
|
|
|
update sys_camera
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="policeId != null">police_id = #{policeId},</if>
|
|
|
- <if test="ascriptionStation != null">ascription_station =
|
|
|
- #{ascriptionStation},
|
|
|
+ <if test="cameraName != null">camera_name =
|
|
|
+ #{cameraName},
|
|
|
</if>
|
|
|
<if test="address != null">address =
|
|
|
#{address},
|