|
|
@ -430,6 +430,48 @@ |
|
|
<if test="password != null and password != ''">and password = #{password}</if> |
|
|
<if test="password != null and password != ''">and password = #{password}</if> |
|
|
</where> |
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<select id="selectCamera" parameterType="com.inspect.system.base.openDomain.BasedataEqpBookMoMain" |
|
|
|
|
|
resultMap="BasedataEqpBookResult"> |
|
|
|
|
|
SELECT |
|
|
|
|
|
a.eqp_book_id, |
|
|
|
|
|
a.station_name, |
|
|
|
|
|
a.station_code, |
|
|
|
|
|
a.area_id, |
|
|
|
|
|
a.area_name, |
|
|
|
|
|
b.channel_name AS patrol_device_name, |
|
|
|
|
|
b.patrol_device_code, |
|
|
|
|
|
b.up_system_device_code, |
|
|
|
|
|
a.device_model, |
|
|
|
|
|
a.manufacturer, |
|
|
|
|
|
a.use_unit, |
|
|
|
|
|
b.device_source, |
|
|
|
|
|
a.production_date, |
|
|
|
|
|
a.production_code, |
|
|
|
|
|
a.is_transport, |
|
|
|
|
|
ifnull(a.use_mode,b.use_mode) as use_mode, |
|
|
|
|
|
ifnull(a.video_mode,b.video_mode) as video_mode, |
|
|
|
|
|
a.place, |
|
|
|
|
|
a.position_x, |
|
|
|
|
|
a.position_y, |
|
|
|
|
|
a.position_z, |
|
|
|
|
|
a.type, |
|
|
|
|
|
a.patrol_device_info, |
|
|
|
|
|
a.robots_code, |
|
|
|
|
|
b.HOST AS ip_addr, |
|
|
|
|
|
b.PORT as port, |
|
|
|
|
|
b.username AS user, |
|
|
|
|
|
b.`password`, |
|
|
|
|
|
a.main_system_code |
|
|
|
|
|
from basedata_eqpbook a |
|
|
|
|
|
left join basedata_eqpbook_channel b on a.eqp_book_id = b.eqp_book_id |
|
|
|
|
|
where type in |
|
|
|
|
|
<foreach item="algIda" collection="algId" open="(" separator="," close=")"> |
|
|
|
|
|
#{algIda} |
|
|
|
|
|
</foreach> |
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectPatroByAllDev" parameterType="PatrolResult" resultMap="PatrolResultResult"> |
|
|
<select id="selectPatroByAllDev" parameterType="PatrolResult" resultMap="PatrolResultResult"> |
|
|
select a.*,c.area_name from patrol_result a |
|
|
select a.*,c.area_name from patrol_result a |
|
|
left JOIN basedata_patrolpoint b on a.device_id=b.patrol_point_id |
|
|
left JOIN basedata_patrolpoint b on a.device_id=b.patrol_point_id |
|
|
|