|
@@ -61,6 +61,44 @@ CREATE TABLE `t_ie_exam_media_log` (
|
|
|
KEY `t_ie_exam_media_log_exam_record_id_IDX` (`exam_record_id`) USING BTREE
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='多媒体日志表';
|
|
|
|
|
|
+DROP TABLE IF EXISTS `t_e_exam_summary`;
|
|
|
+CREATE TABLE `t_e_exam_summary` (
|
|
|
+ `exam_id` bigint NOT NULL COMMENT '考试批次id',
|
|
|
+ `exam_activity_id` bigint NOT NULL COMMENT '考试场次id',
|
|
|
+ `room_code` varchar(50) NOT NULL COMMENT '考场编码',
|
|
|
+ `total_count` int DEFAULT NULL COMMENT '考生总数',
|
|
|
+ `prepare_count` int DEFAULT NULL COMMENT '候考人数',
|
|
|
+ `exam_count` int DEFAULT NULL COMMENT '正在考试人数',
|
|
|
+ `finish_count` int DEFAULT NULL COMMENT '考试完成人数',
|
|
|
+ `absent_count` int DEFAULT NULL COMMENT '缺考人数',
|
|
|
+ `online_count` int DEFAULT NULL COMMENT '在线人数',
|
|
|
+ `offline_count` int DEFAULT NULL COMMENT '离线人数',
|
|
|
+ `monitor_stop_count` int DEFAULT NULL COMMENT '监控停止人数',
|
|
|
+ `warning_count` int DEFAULT NULL COMMENT '预警总数',
|
|
|
+ `warning_unread` int DEFAULT NULL COMMENT '预警未读数',
|
|
|
+ `warning_multiple_face_count` int DEFAULT NULL COMMENT '陌生人脸预警总数',
|
|
|
+ `exception_count` int DEFAULT NULL COMMENT '异常数据总数',
|
|
|
+ PRIMARY KEY (`exam_id`,`exam_activity_id`,`room_code`)
|
|
|
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='考试信息统计表';
|
|
|
+
|
|
|
+DROP TABLE IF EXISTS `t_e_org_summary`;
|
|
|
+CREATE TABLE `t_e_org_summary` (
|
|
|
+ `org_id` bigint NOT NULL DEFAULT '0' COMMENT '机构ID,全局为0',
|
|
|
+ `online_count` int DEFAULT NULL COMMENT '在线人数',
|
|
|
+ `exam_count` int DEFAULT NULL COMMENT '考试人数',
|
|
|
+ `finish_count` int DEFAULT NULL COMMENT '完成考试次数',
|
|
|
+ `finish_student_count` int DEFAULT NULL COMMENT '完成考试人数',
|
|
|
+ PRIMARY KEY (`org_id`)
|
|
|
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='超管统计表';
|
|
|
+
|
|
|
+DROP TABLE IF EXISTS `t_e_region_summary`;
|
|
|
+CREATE TABLE `t_e_region_summary` (
|
|
|
+ `country` varchar(30) CHARACTER SET utf8mb4 NOT NULL COMMENT '国家',
|
|
|
+ `province` varchar(30) CHARACTER SET utf8mb4 NOT NULL COMMENT '省份',
|
|
|
+ `online_count` int DEFAULT NULL COMMENT '在线人数',
|
|
|
+ PRIMARY KEY (`country`,`province`)
|
|
|
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='地区统计表';
|
|
|
+
|
|
|
/*删除进度查询菜单*/
|
|
|
INSERT INTO t_b_role_privilege
|
|
|
(id, role_code, privilege_id)
|
|
@@ -69,5 +107,5 @@ INSERT INTO t_b_role_privilege
|
|
|
(id, role_code, privilege_id)
|
|
|
VALUES(153, 'ADMIN', 19);
|
|
|
|
|
|
-delete t t_b_role_privilege t
|
|
|
+delete t from t_b_role_privilege t
|
|
|
where t.id in (149,153);
|