修复国标级联推送位置新
This commit is contained in:
@@ -96,7 +96,7 @@ public class CommonGBChannel {
|
||||
private Double gpsDirection;
|
||||
|
||||
@Schema(description = "")
|
||||
private String gbGpsTime;
|
||||
private String gpsTime;
|
||||
|
||||
@Schema(description = "国标-虚拟组织所属的业务分组ID")
|
||||
private String gbBusinessGroupId;
|
||||
|
||||
@@ -262,6 +262,10 @@ public interface PlatformChannelMapper {
|
||||
" wdc.data_device_id,\n" +
|
||||
" wdc.create_time,\n" +
|
||||
" wdc.update_time,\n" +
|
||||
" wdc.gps_altitude,\n" +
|
||||
" wdc.gps_speed,\n" +
|
||||
" wdc.gps_direction,\n" +
|
||||
" wdc.gps_time,\n" +
|
||||
" coalesce(wpgc.custom_device_id, wdc.gb_device_id, wdc.device_id) as gb_device_id,\n" +
|
||||
" coalesce(wpgc.custom_name, wdc.gb_name, wdc.name) as gb_name,\n" +
|
||||
" coalesce(wpgc.custom_manufacturer, wdc.gb_manufacturer, wdc.manufacturer) as gb_manufacturer,\n" +
|
||||
|
||||
@@ -565,6 +565,7 @@ public class PlatformServiceImpl implements IPlatformService {
|
||||
gpsMsgInfo = null;
|
||||
}
|
||||
|
||||
|
||||
if (gpsMsgInfo == null && !userSetting.isSendPositionOnDemand()){
|
||||
gpsMsgInfo = new GPSMsgInfo();
|
||||
gpsMsgInfo.setId(channel.getGbDeviceId());
|
||||
@@ -573,7 +574,7 @@ public class PlatformServiceImpl implements IPlatformService {
|
||||
gpsMsgInfo.setAltitude(channel.getGpsAltitude());
|
||||
gpsMsgInfo.setSpeed(channel.getGpsSpeed());
|
||||
gpsMsgInfo.setDirection(channel.getGpsDirection());
|
||||
gpsMsgInfo.setTime(channel.getGbGpsTime());
|
||||
gpsMsgInfo.setTime(channel.getGpsTime());
|
||||
}
|
||||
|
||||
// 无最新位置不发送
|
||||
|
||||
@@ -78,7 +78,7 @@ public class MobilePositionNotifyMessageHandler extends SIPRequestProcessorParen
|
||||
String channelId = getText(rootElementAfterCharset, "DeviceID");
|
||||
DeviceChannel deviceChannel = deviceChannelService.getOne(device.getDeviceId(), channelId);
|
||||
if (deviceChannel == null) {
|
||||
log.warn("[解析报警消息] 未找到通道:{}/{}", device.getDeviceId(), channelId);
|
||||
log.warn("[解析移动位置通知] 未找到通道:{}/{}", device.getDeviceId(), channelId);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column prop="manufacturer" label="厂家" min-width="100">
|
||||
</el-table-column>
|
||||
<el-table-column label="位置信息" min-width="120">
|
||||
<el-table-column label="位置信息" min-width="150">
|
||||
<template v-slot:default="scope">
|
||||
<span size="medium" v-if="scope.row.longitude && scope.row.latitude">{{scope.row.longitude}}<br/>{{scope.row.latitude}}</span>
|
||||
<span size="medium" v-if="!scope.row.longitude || !scope.row.latitude">无</span>
|
||||
|
||||
Reference in New Issue
Block a user