|
|
@ -40,6 +40,11 @@
|
|
|
|
<result column="bs_identifier" jdbcType="VARCHAR" property="bsIdentifier"/>
|
|
|
|
<result column="bs_identifier" jdbcType="VARCHAR" property="bsIdentifier"/>
|
|
|
|
<result column="latitude" jdbcType="DOUBLE" property="latitude"/>
|
|
|
|
<result column="latitude" jdbcType="DOUBLE" property="latitude"/>
|
|
|
|
<result column="longitude" jdbcType="DOUBLE" property="longitude"/>
|
|
|
|
<result column="longitude" jdbcType="DOUBLE" property="longitude"/>
|
|
|
|
|
|
|
|
<result column="signal_strength_4g" jdbcType="SMALLINT" property="signalStrength4g"/>
|
|
|
|
|
|
|
|
<result column="boot_time" jdbcType="INTEGER" property="bootTime"/>
|
|
|
|
|
|
|
|
<result column="battery_capacity" jdbcType="FLOAT" property="batteryCapacity"/>
|
|
|
|
|
|
|
|
<result column="battery_voltage" jdbcType="FLOAT" property="batteryVoltage"/>
|
|
|
|
|
|
|
|
<result column="last_heartbeat" jdbcType="INTEGER" property="lastHeartbeat"/>
|
|
|
|
<collection property="list" javaType="list" ofType="com.shxy.xymanager_common.dto.TerminalChannelsDto">
|
|
|
|
<collection property="list" javaType="list" ofType="com.shxy.xymanager_common.dto.TerminalChannelsDto">
|
|
|
|
<result column="channel_id" jdbcType="INTEGER" property="id"/>
|
|
|
|
<result column="channel_id" jdbcType="INTEGER" property="id"/>
|
|
|
|
<result column="channel_name" jdbcType="VARCHAR" property="name"/>
|
|
|
|
<result column="channel_name" jdbcType="VARCHAR" property="name"/>
|
|
|
@ -139,12 +144,18 @@
|
|
|
|
a.latitude as latitude,
|
|
|
|
a.latitude as latitude,
|
|
|
|
a.longitude as longitude,
|
|
|
|
a.longitude as longitude,
|
|
|
|
e.id as channel_id,
|
|
|
|
e.id as channel_id,
|
|
|
|
e.channel_name as channel_name
|
|
|
|
e.channel_name as channel_name,
|
|
|
|
|
|
|
|
ts.signal_strength_4g as signal_strength_4g,
|
|
|
|
|
|
|
|
ts.boot_time as boot_time,
|
|
|
|
|
|
|
|
ts.battery_capacity as battery_capacity,
|
|
|
|
|
|
|
|
ts.battery_voltage as battery_voltage,
|
|
|
|
|
|
|
|
ts.last_heartbeat as last_heartbeat
|
|
|
|
from
|
|
|
|
from
|
|
|
|
((((terminals a left join `lines` b on a.line_id = b.id )
|
|
|
|
(((((terminals a left join `lines` b on a.line_id = b.id )
|
|
|
|
left join tower c on a.tower_id = c.id)
|
|
|
|
left join tower c on a.tower_id = c.id)
|
|
|
|
left join terminal_channel_mapper d on a.id = d.term_id)
|
|
|
|
left join terminal_channel_mapper d on a.id = d.term_id)
|
|
|
|
left join terminal_channels e on d.channel_id = e.id)
|
|
|
|
left join terminal_channels e on d.channel_id = e.id)
|
|
|
|
|
|
|
|
left join terminal_status ts on ts.term_id = a.id)
|
|
|
|
WHERE a.status = 1
|
|
|
|
WHERE a.status = 1
|
|
|
|
order by a.create_time desc
|
|
|
|
order by a.create_time desc
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|