1、优化跟随处理
This commit is contained in:
parent
3c55673177
commit
3b72967226
@ -25,6 +25,7 @@ public class GnssGroup implements Serializable {
|
||||
Short rs_adv; // reference station only
|
||||
Short power_mode;
|
||||
Integer device_num;
|
||||
Short gnss_sample_s;
|
||||
|
||||
public String getConfigCmd(GnssDevice device){
|
||||
String cmd = "D3110009";
|
||||
@ -33,7 +34,8 @@ public class GnssGroup implements Serializable {
|
||||
+HexUtil.Byte2HexString((byte) active_time.intValue())
|
||||
+HexUtil.Byte2HexString((byte) active_offset.intValue())
|
||||
+((device.getDevicetype() == GnssDevice.TYPE_ROVER)?"00":HexUtil.Byte2HexString((byte) rs_adv.shortValue()))
|
||||
+HexUtil.Byte2HexString((byte) power_mode.shortValue());
|
||||
+HexUtil.Byte2HexString((byte) power_mode.shortValue())
|
||||
+HexUtil.Byte2HexString((byte) gnss_sample_s.shortValue());
|
||||
return cmd;
|
||||
}
|
||||
|
||||
|
||||
@ -123,7 +123,9 @@ public class GnssDeviceController extends BasicController{
|
||||
//所属组织
|
||||
String tenantname = search.getString("tenantname");
|
||||
if (StringUtils.hasText(tenantname)) {
|
||||
queryWrapper.like("tenantname", tenantname);
|
||||
if(tenantname.startsWith("非SAAS"))
|
||||
queryWrapper.ne("tenantname",Tenant.SAAS_PROVIDER_NAME);
|
||||
else queryWrapper.like("tenantname", tenantname);
|
||||
}
|
||||
//设备类型
|
||||
Integer devicetype = search.getInteger("devicetype");
|
||||
|
||||
@ -78,6 +78,7 @@ CREATE TABLE IF NOT EXISTS `gnssgroup` (
|
||||
`active_time` int DEFAULT 6,
|
||||
`active_offset` int DEFAULT 0,
|
||||
`rs_adv` smallint DEFAULT 0,
|
||||
`gnss_sample_s` smallint DEFAULT 1,
|
||||
`power_mode` smallint DEFAULT 0,
|
||||
`device_num` int DEFAULT 0,
|
||||
PRIMARY KEY (`id`)
|
||||
|
||||
@ -41,6 +41,7 @@
|
||||
<div class="layui-input-inline">
|
||||
<select name="tenantname" id="tenantname" lay-search="">
|
||||
<option value="">全部</option>
|
||||
<option value="非SAAS服务商">非SAAS服务商</option>
|
||||
<option th:each="item : ${tenant_list}" th:text="${item.name}" th:value="${item.name}"></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@ -54,6 +54,7 @@
|
||||
{field: 'active_time', title: '激活时长(分钟)'},
|
||||
{field: 'active_offset', title: '偏置(分钟)'},
|
||||
{field: 'rs_adv', title: '基准站提前时间(分钟)'},
|
||||
{field: 'gnss_sample_s', title: 'GNSS上报(秒)'},
|
||||
{field: 'power_mode', title: '功耗模式',templet: "<div>{{d.power_mode==0?'低功耗':'普通'}}</div>"},
|
||||
{field: 'device_num', title: '关联设备数'},
|
||||
{title: '操作', toolbar: '#currentTableBar', align: "center"}
|
||||
|
||||
@ -47,6 +47,12 @@
|
||||
<input type="number" name="active_offset" id="active_offset" placeholder="请输入配置" value="0" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">GNSS上报(秒)</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="number" name="gnss_sample_s" id="gnss_sample_s" placeholder="请输入配置" value="0" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">基准站提前时间(分钟)</label>
|
||||
<div class="layui-input-block">
|
||||
@ -111,6 +117,7 @@
|
||||
$('#rs_adv').val(data.rs_adv);
|
||||
$('#power_mode').val(data.power_mode);
|
||||
$('#name').val(data.name);
|
||||
$('#gnss_sample_s').val(data.gnss_sample_s);
|
||||
form.render();
|
||||
}
|
||||
</script>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user