#20230529 欣影管理平台拍照时间表代码

master
18616268358 2 years ago
parent cf7ed7533e
commit 18180084d5

@ -52,6 +52,16 @@ public class TerminalsAndLineAndChannelDto implements Serializable {
private Short boderWidth; private Short boderWidth;
private Short signalStrength4g;
private Integer bootTime;
private float batteryCapacity;
private float batteryVoltage;
private Integer lastHeartbeat;
private List<TerminalChannelsDto> list; private List<TerminalChannelsDto> list;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

@ -79,6 +79,21 @@ public class TerminalListModel implements Serializable {
@ApiModelProperty(value = "经度", example = "213") @ApiModelProperty(value = "经度", example = "213")
private Double longitude; private Double longitude;
@ApiModelProperty(value = "4G信号强度", example = "213")
private Short signalStrength4g;
@ApiModelProperty(value = "装置上次启动时间", example = "213")
private Integer bootTime;
@ApiModelProperty(value = "电池电量", example = "213")
private float batteryCapacity;
@ApiModelProperty(value = "电源电压", example = "213")
private float batteryVoltage;
@ApiModelProperty(value = "最后一次心跳时间", example = "213")
private Integer lastHeartbeat;
@ApiModelProperty(value = "通道编号和名称", example = "213") @ApiModelProperty(value = "通道编号和名称", example = "213")
private List<ChannelBeans> list; private List<ChannelBeans> list;

@ -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>

Loading…
Cancel
Save