新增 loggingmode 字段于 gnssdevice 中,用于控制是否保存日志
- 前端 gnss_add_dev 页面增加日志控制的选项 - 数据表 GnssDevice 类 和 缓存 Device 类增加 loggingmode 字段属性,用于控制设备的日志是否保存于文件之中 - 数据库更改 gnssdevices 表,添加一个 SMALLINT 的 loggingmode 字段
This commit is contained in:
parent
655cced8a8
commit
d86e547470
@ -25,6 +25,9 @@ public class GnssDevice {
|
|||||||
public static final short MODEL_G505 = 0; //F9P
|
public static final short MODEL_G505 = 0; //F9P
|
||||||
public static final short MODEL_G510 = 1; //博通
|
public static final short MODEL_G510 = 1; //博通
|
||||||
|
|
||||||
|
public static final short LOGGIN_MODE_SIMPLE = 0; // 精简模式( 仅D3F0和D3F2 )
|
||||||
|
public static final short LOGGIN_MODE_FULL = 1; // 完整模式
|
||||||
|
|
||||||
@TableId(value = "id", type = IdType.AUTO)
|
@TableId(value = "id", type = IdType.AUTO)
|
||||||
private Long id;
|
private Long id;
|
||||||
private Integer tenantid;
|
private Integer tenantid;
|
||||||
@ -60,4 +63,7 @@ public class GnssDevice {
|
|||||||
private String imei;
|
private String imei;
|
||||||
private Short model;
|
private Short model;
|
||||||
|
|
||||||
|
// 日志记录控制
|
||||||
|
private Short loggingmode;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -42,6 +42,7 @@ public class DbDeviceServiceImpl implements DeviceService {
|
|||||||
device.setEcefx(gnssDevice.getEcefx());
|
device.setEcefx(gnssDevice.getEcefx());
|
||||||
device.setEcefy(gnssDevice.getEcefy());
|
device.setEcefy(gnssDevice.getEcefy());
|
||||||
device.setEcefz(gnssDevice.getEcefz());
|
device.setEcefz(gnssDevice.getEcefz());
|
||||||
|
device.setLoggingmode(gnssDevice.getLoggingmode());
|
||||||
return device;
|
return device;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -65,6 +65,9 @@ public class Device {
|
|||||||
LocalDateTime lastD3f0f2Time;
|
LocalDateTime lastD3f0f2Time;
|
||||||
short noFixedAndFloatResult=0;
|
short noFixedAndFloatResult=0;
|
||||||
|
|
||||||
|
// 日志记录控制
|
||||||
|
Short loggingmode;
|
||||||
|
|
||||||
int lastRxHead = 0;
|
int lastRxHead = 0;
|
||||||
|
|
||||||
int fixedNum = 0;
|
int fixedNum = 0;
|
||||||
|
|||||||
@ -34,6 +34,16 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="layui-inline">
|
||||||
|
<label class="layui-form-label required">日志记录</label>
|
||||||
|
<div class="layui-input-inline">
|
||||||
|
<select name="loggingmode" id="loggingmode" lay-verify="required" lay-search="">
|
||||||
|
<option value="0">不记录(除了自检和停止消息)</option>
|
||||||
|
<option value="1">记录</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
@ -292,6 +302,7 @@
|
|||||||
$('#fwd_group_id').val(data.fwd_group_id);
|
$('#fwd_group_id').val(data.fwd_group_id);
|
||||||
$('#fwd_group_id2').val(data.fwd_group_id2);
|
$('#fwd_group_id2').val(data.fwd_group_id2);
|
||||||
$('#opmode').val(data.opmode);
|
$('#opmode').val(data.opmode);
|
||||||
|
$('#loggingmode').val(data.loggingmode);
|
||||||
$('#fwddeviceid').val(data.fwddeviceid);
|
$('#fwddeviceid').val(data.fwddeviceid);
|
||||||
$('#ipose').val(data.ipose);
|
$('#ipose').val(data.ipose);
|
||||||
$('#iposn').val(data.iposn);
|
$('#iposn').val(data.iposn);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user