{
if (paraName.startsWith("s") && StringUtils.hasText((String)paraValue)) {
addStringQueryWrapper(queryWrapper, paraName, paraValue);
}
- // Number
+ // Number,-1表示全部
else if (paraName.startsWith("n") && StringUtils.hasText((String)paraValue)) {
- addNumberQueryWrapper(queryWrapper, paraName, paraValue);
+ if(!paraValue.equals("-1")) addNumberQueryWrapper(queryWrapper, paraName, paraValue);
}
// Date & Time
else if (paraName.startsWith("d") && StringUtils.hasText((String)paraValue)) {
diff --git a/sec-beidou/src/main/resources/db/schema.sql b/sec-beidou/src/main/resources/db/schema.sql
index 901d785d..3ec8425d 100644
--- a/sec-beidou/src/main/resources/db/schema.sql
+++ b/sec-beidou/src/main/resources/db/schema.sql
@@ -79,6 +79,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`)
@@ -219,6 +220,7 @@ CREATE TABLE IF NOT EXISTS `gnsstrxmsg` (
`satelliteinuse` int DEFAULT 0,
`fixnum` int DEFAULT NULL,
`floatnum` int DEFAULT NULL,
+ `jumpcount` int DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
@@ -361,4 +363,31 @@ CREATE TABLE IF NOT EXISTS `simcards` (
UNIQUE KEY `uk_msisd` (`msisd`),
INDEX `idx_deviceid` (`deviceid`),
INDEX `idx_status` (`status`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='SIM卡信息表';
\ No newline at end of file
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='SIM卡信息表';
+
+CREATE TABLE IF NOT EXISTS `ehm` (
+ `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
+ `tenantid` int DEFAULT 0,
+ `deviceid` varchar(64) NOT NULL COMMENT '设备ID',
+ `createtime` datetime(3) NOT NULL COMMENT '创建时间',
+ `offlinestatdays` smallint DEFAULT NULL COMMENT '离线统计周期',
+ `offlinecount` int DEFAULT NULL COMMENT '离线统计周期内的离线次数',
+ `offlineminutes` int DEFAULT NULL COMMENT '离线统计周期内的离线时长',
+ `calcstathours` int DEFAULT NULL COMMENT '数据分析周期',
+ `stdeve` float DEFAULT NULL COMMENT '标准差',
+ `stdevn` float DEFAULT NULL COMMENT '标准差',
+ `stdevu` float DEFAULT NULL COMMENT '标准差',
+ `fixrate` float DEFAULT NULL COMMENT '固定率',
+ `validrate` float DEFAULT NULL COMMENT '有效解比例',
+ `jumpcount` int DEFAULT NULL COMMENT '周跳次数',
+ PRIMARY KEY (`id`),
+ KEY `idx_deviceid_createtime` (`deviceid`,`createtime`),
+ KEY `idx_createtime` (`createtime`)
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+CREATE TABLE IF NOT EXISTS `ehmconfig` (
+ `updatetime` datetime(3) NOT NULL COMMENT '更新时间',
+ `offlinestatdays` smallint DEFAULT NULL COMMENT '离线统计周期',
+ `calcstathours` int DEFAULT NULL COMMENT '数据分析周期',
+ PRIMARY KEY (`updatetime`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
diff --git a/sec-beidou/src/main/resources/static/api/init_super_admin.json b/sec-beidou/src/main/resources/static/api/init_super_admin.json
index b8bf9bcb..c50fc81f 100644
--- a/sec-beidou/src/main/resources/static/api/init_super_admin.json
+++ b/sec-beidou/src/main/resources/static/api/init_super_admin.json
@@ -21,6 +21,12 @@
"icon": "fa fa-home",
"target": "_self"
},
+ {
+ "title": "健康检查报告",
+ "href": "page/gnss_ehm",
+ "icon": "fa fa-tachometer",
+ "target": "_self"
+ },
{
"title": "运行状态",
"href": "page/gnss_status",
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 dc065381..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 @@
@@ -123,7 +124,7 @@
{field: 'project_id', title: '项目号', width: 120, sort: true},
{field: 'sector', title: '桩号', width: 120, sort: true},
{field: 'name', title: '监测点号', width: 80},
- {field: 'devicetype', title: '类型', width: 80,templet: '#typeTrans'},
+ {field: 'devicetype', title: '类型', width: 80,templet: "{{d.devicetype==0?'监测站':'基准站'}}
"},
{field: 'group_id', title: '基本参数组', width: 60, sort: true},
{field: 'calc_group_id', title: '解算参数组', width: 60, sort: true},
{field: 'parentid', title: '基站编号', width: 80, sort: true},
@@ -256,14 +257,6 @@
}
-
-
+
+
+