fix: 配置调整

main
huangfeng 2 years ago
parent c6c55b5d94
commit 0fe686a39a

@ -6,7 +6,7 @@
<groupId>com.xydl</groupId>
<artifactId>mqtt</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>
<parent>
<groupId>org.springframework.boot</groupId>

@ -1,9 +1,6 @@
-- ----------------------------
-- Table structure for sync_tables_info
-- ----------------------------
DROP TABLE IF EXISTS `sync_tables_info`;
CREATE TABLE `sync_tables_info` (
`client_id` int UNSIGNED NOT NULL,
`table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
@ -32,7 +29,6 @@ INSERT INTO `sync_tables_info` VALUES (10, 'data_sf6env_h', 'SELECT t2.equipment
INSERT INTO `sync_tables_info` VALUES (10, 'data_sf6_h', 'SELECT t2.equipmentid AS SubDeviceID, t2.sensorid,t1.d_time, t1.temp1, t1.md1, t1.pressure1+900, t1.pressure1, t1.pm1, t2.phase FROM `data_sf6_h` AS t1 JOIN i2relation AS t2 ON t1.eqmid=t2.eqmid WHERE t1.eqmid=%%DEVID%% AND t1.d_time>%%KEYVALUE%% ORDER BY t1.d_time LIMIT 1000', 'eqmid', 'sensorid', 'capturetime', 3, '2023-12-13 09:42:12');
DROP TABLE IF EXISTS `sync_fields_info`;
CREATE TABLE `sync_fields_info` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT,
`client_id` int UNSIGNED NOT NULL,
@ -107,7 +103,6 @@ INSERT INTO `sync_fields_info` VALUES (69, 10, 'arrester_assessment_result', 'fu
-- ----------------------------
-- Table structure for sync_records
-- ----------------------------
DROP TABLE IF EXISTS `sync_records`;
CREATE TABLE `sync_records` (
`client_id` int UNSIGNED NOT NULL,
`table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
@ -118,6 +113,3 @@ CREATE TABLE `sync_records` (
PRIMARY KEY (`client_id`, `table_name`, `devid_val`) USING BTREE
);

@ -14,11 +14,7 @@ spring:
mybatis:
configuration:
map-underscore-to-camel-case: true
#mybatis:
#指定mybatis配置文件的位置
#config-location: classpath:mybatis/mybatis-config.xml
#指定映射文件的位置
# mapper-locations: classpath:mybatis/mapper/*.xml
mqtt:
publish:

@ -1,6 +1,6 @@
#端口号
server:
port: 8099
port: 8098
#数据源配置
spring:
@ -14,11 +14,7 @@ spring:
mybatis:
configuration:
map-underscore-to-camel-case: true
#mybatis:
#指定mybatis配置文件的位置
#config-location: classpath:mybatis/mybatis-config.xml
#指定映射文件的位置
# mapper-locations: classpath:mybatis/mapper/*.xml
mqtt:
publish:

Loading…
Cancel
Save