diff --git a/sec-api/src/main/java/com/imdroid/secapi/dto/GnssGroup.java b/sec-api/src/main/java/com/imdroid/secapi/dto/GnssGroup.java index 75d87a28..12ac9235 100644 --- a/sec-api/src/main/java/com/imdroid/secapi/dto/GnssGroup.java +++ b/sec-api/src/main/java/com/imdroid/secapi/dto/GnssGroup.java @@ -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; } diff --git a/sec-beidou/src/main/java/com/imdroid/beidou/controller/GnssDeviceController.java b/sec-beidou/src/main/java/com/imdroid/beidou/controller/GnssDeviceController.java index c457a80b..b6ad50e1 100644 --- a/sec-beidou/src/main/java/com/imdroid/beidou/controller/GnssDeviceController.java +++ b/sec-beidou/src/main/java/com/imdroid/beidou/controller/GnssDeviceController.java @@ -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"); diff --git a/sec-beidou/src/main/resources/db/schema.sql b/sec-beidou/src/main/resources/db/schema.sql index e5361e25..acc502e9 100644 --- a/sec-beidou/src/main/resources/db/schema.sql +++ b/sec-beidou/src/main/resources/db/schema.sql @@ -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`) diff --git a/sec-beidou/src/main/resources/templates/page/gnss_dev_cfg.html b/sec-beidou/src/main/resources/templates/page/gnss_dev_cfg.html index 4998102a..cb248163 100644 --- a/sec-beidou/src/main/resources/templates/page/gnss_dev_cfg.html +++ b/sec-beidou/src/main/resources/templates/page/gnss_dev_cfg.html @@ -41,6 +41,7 @@