Browse Source

增加新服务部署说明,及sql表结构丢失补充

jingyuanchao 1 year ago
parent
commit
62c2087a30
2 changed files with 52 additions and 2 deletions
  1. 28 2
      project_data/sql/0.0.6-iot/soc/soc.sql
  2. 24 0
      project_data/sql/0.0.6-iot/部署说明.txt

+ 28 - 2
project_data/sql/0.0.6-iot/soc/soc.sql

@@ -490,8 +490,34 @@ CREATE TABLE `iot_sensor_log` (
           PRIMARY KEY (`id`) USING BTREE
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci  COMMENT='动环传感器日志表';
 
-
-
+drop table if exists mediator_north_business_statistics;
+CREATE TABLE `mediator_north_business_statistics` (
+      `id` bigint NOT NULL,
+      `org_name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
+      `date` date DEFAULT NULL COMMENT '日期',
+      `channel_count` bigint DEFAULT NULL COMMENT '通道数量',
+      `video_integrity_count` bigint DEFAULT NULL COMMENT '录像完整下数量',
+      `video_days_count` bigint DEFAULT NULL COMMENT '录像视频天数数量',
+      `video_diagnosis_count` bigint DEFAULT NULL COMMENT '视频质量诊断数量',
+      `protection_count` bigint DEFAULT NULL COMMENT '防区数量',
+      `protection_status_count` bigint DEFAULT NULL COMMENT '防区状态数量',
+      `net_status_count` bigint DEFAULT NULL COMMENT '网络状态',
+      `hard_disk_count` bigint DEFAULT NULL COMMENT '硬盘检测数量',
+      `door_device_count` bigint DEFAULT NULL COMMENT '卷帘门状态(主机直连)数量',
+      PRIMARY KEY (`id`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='北向业务数据信息统计';
+
+drop table if exists mediator_north_base_statistics;
+CREATE TABLE `mediator_north_base_statistics` (
+      `id` bigint NOT NULL DEFAULT '20',
+      `date` date DEFAULT NULL COMMENT '接收日期',
+      `data_type` int DEFAULT NULL COMMENT '数据类型,0设备数,1通道数,2防区数,3iot产品信息,4iot产品属性,5iot设备基本信息',
+      `receive_count` bigint DEFAULT NULL COMMENT '接收数量',
+      `save_count` bigint DEFAULT NULL COMMENT '入库数量',
+      PRIMARY KEY (`id`) USING BTREE,
+      UNIQUE KEY `t_north_statistics_id_uindex` (`id`) USING BTREE,
+      KEY `t_north_statistics_date_data_type_index` (`date`,`data_type`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='北向基础信息统计表';
 
 drop table if exists mediator_north_error;
 CREATE TABLE `mediator_north_error` (

+ 24 - 0
project_data/sql/0.0.6-iot/部署说明.txt

@@ -0,0 +1,24 @@
+
+
+
+
+配置文件修改:
+1.soc-gateway-dev.yml
+ routes 节点下增加:
+    # 北向服务
+    - id: soc-mediator
+      uri: lb://soc-mediator
+      predicates:
+        - Path=/mediator/**
+      filters:
+        - StripPrefix=1
+    # IOT 服务
+    - id: soc-iot
+      uri: lb://soc-iot
+      predicates:
+        - Path=/iot/**
+      filters:
+        - StripPrefix=1
+
+   ignore.whites: 节点下增加
+    - /mediator/**