diff --git a/sec-beidou/src/main/resources/db/schema.sql b/sec-beidou/src/main/resources/db/schema.sql index 1788670e..d35646a3 100644 --- a/sec-beidou/src/main/resources/db/schema.sql +++ b/sec-beidou/src/main/resources/db/schema.sql @@ -63,7 +63,7 @@ CREATE TABLE IF NOT EXISTS `gnssdevices` ( `ecefx` double DEFAULT NULL COMMENT '初始位置X', `ecefy` double DEFAULT NULL COMMENT '初始位置Y', `ecefz` double DEFAULT NULL COMMENT '初始位置Z', - `section` varchar(64) DEFAULT NULL COMMENT '桩号', + `sector` varchar(64) DEFAULT NULL COMMENT '桩号', `appver` varchar(16) DEFAULT NULL COMMENT '固件版本', `imei` varchar(16) DEFAULT NULL, `model` smallint DEFAULT 0, @@ -166,7 +166,7 @@ CREATE TABLE IF NOT EXISTS `gnssdevicelocationrecords` ( `auxd` double DEFAULT NULL COMMENT '中间过程天D', `pps` int DEFAULT NULL, PRIMARY KEY (`id`), - KEY `idx_deviceid_time` (`deviceid`,`createtime`) USING BTREE + KEY `idx_deviceid_time` (`createtime` desc,`deviceid`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; CREATE TABLE IF NOT EXISTS `gnssmsg` (