Browse Source

考生端接口

wangliang 5 năm trước cách đây
mục cha
commit
3e2dc85db2

+ 27 - 16
themis-business/src/main/java/com/qmth/themis/business/templete/impl/TaskExamStudentImportTemplete.java

@@ -8,9 +8,11 @@ import com.google.gson.Gson;
 import com.qmth.themis.business.constant.SpringContextHolder;
 import com.qmth.themis.business.constant.SystemConstant;
 import com.qmth.themis.business.dto.ExamStudentImportDto;
-import com.qmth.themis.business.entity.*;
+import com.qmth.themis.business.entity.TBExamInvigilateUser;
+import com.qmth.themis.business.entity.TEExamActivity;
+import com.qmth.themis.business.entity.TEExamStudent;
+import com.qmth.themis.business.entity.TEStudent;
 import com.qmth.themis.business.enums.ExamModeEnum;
-import com.qmth.themis.business.enums.RoleEnum;
 import com.qmth.themis.business.service.TBExamInvigilateUserService;
 import com.qmth.themis.business.service.TBUserRoleService;
 import com.qmth.themis.business.service.TEExamStudentService;
@@ -103,8 +105,9 @@ public class TaskExamStudentImportTemplete implements TaskImportTemplete {
             TBExamInvigilateUserService tbExamInvigilateUserService = SpringContextHolder.getBean(TBExamInvigilateUserService.class);
 
             List<TEExamStudent> teExamStudentList = new ArrayList<>();
+            List<TEExamStudent> teExamStudentUpdateList = new ArrayList<>();
             List<TEStudent> teStudentList = new ArrayList<>();
-            List<TBUserRole> tbUserRoleList = new ArrayList<>();
+//            List<TBUserRole> tbUserRoleList = new ArrayList<>();
             List<TBExamInvigilateUser> tbExamInvigilateUserList = new ArrayList<>();
             int y = 0, min = 0;
             try {
@@ -134,22 +137,27 @@ public class TaskExamStudentImportTemplete implements TaskImportTemplete {
                             TEExamStudent teExamStudent = teExamStudentService.getOne(teExamStudentQueryWrapper);
                             //如果为空则插入考生数据,插入考生前先插入学生档案数据
                             if (Objects.isNull(teExamStudent)) {
-                                //先插入学生档案数据
-                                TEStudent teStudent = new TEStudent(taskImportCommon.getOrgId(), examStudentImportDto.getIdentity(), examStudentImportDto.getName(), taskImportCommon.getCreateId());
-                                teStudentService.save(teStudent);
-                                teStudentList.add(teStudent);
-
-                                //插入用户角色关系
-                                TBUserRole tbUserRole = new TBUserRole(teStudent.getId(), RoleEnum.STUDENT.name());
-                                tbUserRoleService.save(tbUserRole);
-                                tbUserRoleList.add(tbUserRole);
+                                QueryWrapper<TEStudent> teStudentQueryWrapper = new QueryWrapper<>();
+                                teStudentQueryWrapper.lambda().eq(TEStudent::getIdentity, examStudentImportDto.getIdentity()).eq(TEStudent::getOrgId, taskImportCommon.getOrgId());
+                                TEStudent teStudent = teStudentService.getOne(teStudentQueryWrapper);
+                                if (Objects.isNull(teStudent)) {//如果学生数据为空则插入学生数据
+                                    //先插入学生档案数据
+                                    teStudent = new TEStudent(taskImportCommon.getOrgId(), examStudentImportDto.getIdentity(), examStudentImportDto.getName(), taskImportCommon.getCreateId());
+                                    teStudentService.save(teStudent);
+                                    teStudentList.add(teStudent);
 
+//                                    //插入用户角色关系
+//                                    TBUserRole tbUserRole = new TBUserRole(teStudent.getId(), RoleEnum.STUDENT.name());
+//                                    tbUserRoleService.save(tbUserRole);
+//                                    tbUserRoleList.add(tbUserRole);
+                                }
                                 teExamStudent = gson.fromJson(gson.toJson(examStudentImportDto), TEExamStudent.class);
                                 teExamStudent.setExamId(taskImportCommon.getExamId());
                                 teExamStudent.setExamActivityId(teExamActivity.getId());
                                 teExamStudent.setStudentId(teStudent.getId());
                                 teExamStudent.setCreateId(taskImportCommon.getCreateId());
                             } else {
+                                teExamStudentUpdateList.add(teExamStudent);
                                 teExamStudent.setUpdateId(taskImportCommon.getCreateId());
                                 teExamStudent.setName(examStudentImportDto.getName());
                                 teExamStudent.setCourseName(examStudentImportDto.getCourseName());
@@ -181,7 +189,7 @@ public class TaskExamStudentImportTemplete implements TaskImportTemplete {
                     roomCodeAndNameSet.forEach(s -> {
                         if (Objects.isNull(tbExamInvigilateUserMap) || (Objects.nonNull(tbExamInvigilateUserMap) && Objects.isNull(tbExamInvigilateUserMap.get(s)))) {
                             String[] strs = s.split(":");
-                            TBExamInvigilateUser tbExamInvigilateUser = new TBExamInvigilateUser(taskImportCommon.getOrgId(), taskImportCommon.getCreateId(), strs[0], strs[1]);
+                            TBExamInvigilateUser tbExamInvigilateUser = new TBExamInvigilateUser(taskImportCommon.getOrgId(), strs[0], strs[1]);
                             tbExamInvigilateUserService.save(tbExamInvigilateUser);
                             tbExamInvigilateUserList.add(tbExamInvigilateUser);
                             count.getAndIncrement();
@@ -199,12 +207,15 @@ public class TaskExamStudentImportTemplete implements TaskImportTemplete {
                 if (Objects.nonNull(teStudentList) && teStudentList.size() > 0) {
                     teStudentService.removeByIds(teStudentList.stream().map(s -> s.getId()).collect(Collectors.toList()));
                 }
-                if (Objects.nonNull(tbUserRoleList) && tbUserRoleList.size() > 0) {
-                    tbUserRoleService.removeByIds(tbUserRoleList.stream().map(s -> s.getId()).collect(Collectors.toList()));
-                }
+//                if (Objects.nonNull(tbUserRoleList) && tbUserRoleList.size() > 0) {
+//                    tbUserRoleService.removeByIds(tbUserRoleList.stream().map(s -> s.getId()).collect(Collectors.toList()));
+//                }
                 if (Objects.nonNull(teExamStudentList) && teExamStudentList.size() > 0) {
                     teExamStudentService.removeByIds(teExamStudentList.stream().map(s -> s.getId()).collect(Collectors.toList()));
                 }
+                if (Objects.nonNull(teExamStudentUpdateList) && teExamStudentUpdateList.size() > 0) {
+                    teExamStudentService.updateBatchById(teExamStudentUpdateList);
+                }
                 if (Objects.nonNull(tbExamInvigilateUserList) && tbExamInvigilateUserList.size() > 0) {
                     tbExamInvigilateUserService.removeByIds(tbExamInvigilateUserList.stream().map(s -> s.getId()).collect(Collectors.toList()));
                 }

+ 3 - 18
themis-business/src/main/java/com/qmth/themis/business/templete/impl/TaskRoomCodeImportTemplete.java

@@ -189,24 +189,9 @@ public class TaskRoomCodeImportTemplete implements TaskImportTemplete {
                 tbUserRoleList.add(tbUserRole);
             }
             //新增考场
-            QueryWrapper<TBExamInvigilateUser> tbExamInvigilateUserQueryWrapper = new QueryWrapper<>();
-            tbExamInvigilateUserQueryWrapper.lambda().eq(TBExamInvigilateUser::getRoomCode, roomCode).eq(TBExamInvigilateUser::getRoomName, roomName).eq(TBExamInvigilateUser::getOrgId, orgId).eq(TBExamInvigilateUser::getUserId, tbUser.getId());
-            TBExamInvigilateUser tbExamInvigilateUser = tbExamInvigilateUserService.getOne(tbExamInvigilateUserQueryWrapper);
-            if (Objects.isNull(tbExamInvigilateUser)) {
-                tbExamInvigilateUser = new TBExamInvigilateUser(orgId, tbUser.getId(), roomCode, roomName);
-                tbExamInvigilateUserService.save(tbExamInvigilateUser);
-                tbExamInvigilateUserList.add(tbExamInvigilateUser);
-            }
-        } else {
-            //新增考场
-            QueryWrapper<TBExamInvigilateUser> tbExamInvigilateUserQueryWrapper = new QueryWrapper<>();
-            tbExamInvigilateUserQueryWrapper.lambda().eq(TBExamInvigilateUser::getRoomCode, roomCode).eq(TBExamInvigilateUser::getRoomName, roomName).eq(TBExamInvigilateUser::getOrgId, orgId);
-            TBExamInvigilateUser tbExamInvigilateUser = tbExamInvigilateUserService.getOne(tbExamInvigilateUserQueryWrapper);
-            if (Objects.isNull(tbExamInvigilateUser)) {
-                tbExamInvigilateUser = new TBExamInvigilateUser(orgId, roomCode, roomName);
-                tbExamInvigilateUserService.save(tbExamInvigilateUser);
-                tbExamInvigilateUserList.add(tbExamInvigilateUser);
-            }
+            TBExamInvigilateUser tbExamInvigilateUser = new TBExamInvigilateUser(orgId, tbUser.getId(), roomCode, roomName);
+            tbExamInvigilateUserService.save(tbExamInvigilateUser);
+            tbExamInvigilateUserList.add(tbExamInvigilateUser);
         }
     }
 }

+ 133 - 101
themis-business/src/main/resources/db/init.sql

@@ -11,7 +11,7 @@
  Target Server Version : 80020
  File Encoding         : 65001
 
- Date: 20/07/2020 17:41:41
+ Date: 22/07/2020 18:46:37
 */
 
 SET NAMES utf8mb4;
@@ -159,7 +159,7 @@ CREATE TABLE `QRTZ_SCHEDULER_STATE` (
 -- Records of QRTZ_SCHEDULER_STATE
 -- ----------------------------
 BEGIN;
-INSERT INTO `QRTZ_SCHEDULER_STATE` VALUES ('ClusterQuartz', 'kingdeMacBook-Air.local1595126334396', 1595126543489, 5000);
+INSERT INTO `QRTZ_SCHEDULER_STATE` VALUES ('ClusterQuartz', 'kingdeMacBook-Air.local1595326757895', 1595326874500, 5000);
 COMMIT;
 
 -- ----------------------------
@@ -238,7 +238,7 @@ CREATE TABLE `QRTZ_TRIGGERS` (
 -- Records of QRTZ_TRIGGERS
 -- ----------------------------
 BEGIN;
-INSERT INTO `QRTZ_TRIGGERS` VALUES ('ClusterQuartz', 'backendJob', 'backendGroupName', 'backendJob', 'backendGroupName', NULL, 1595126580000, 1595126520000, 5, 'WAITING', 'CRON', 1595126415000, 0, NULL, 0, '');
+INSERT INTO `QRTZ_TRIGGERS` VALUES ('ClusterQuartz', 'backendJob', 'backendGroupName', 'backendJob', 'backendGroupName', NULL, 1595326920000, 1595326860000, 5, 'WAITING', 'CRON', 1595326845000, 0, NULL, 0, '');
 COMMIT;
 
 -- ----------------------------
@@ -279,7 +279,9 @@ CREATE TABLE `t_b_attachment` (
 -- Records of t_b_attachment
 -- ----------------------------
 BEGIN;
-INSERT INTO `t_b_attachment` VALUES (18015229329801216, '考场监考老师导入_new', NULL, '.xlsx', 0.01, 'b71f8462ff4b17f06cb768be934dbb13', '{\"path\":\"file/2020/7/20/3f8d1fc4bd8948efa61e778f66c4e26e.xlsx\",\"uploadType\":3,\"type\":\"local\"}', '2020-07-20 17:06:08', 1);
+INSERT INTO `t_b_attachment` VALUES (18746949960204288, '考生导入_在线考试_集中统一', NULL, '.xlsx', 0.01, '4fe843a3c7af49b5261ea3bf6fb7a6ce', '{\"path\":\"file/2020/7/22/33dcc45a438c429c82a51b0caf8d1de3.xlsx\",\"uploadType\":3,\"type\":\"local\"}', '2020-07-22 17:33:41', 1);
+INSERT INTO `t_b_attachment` VALUES (18753488498458624, '考生导入_在线考试_随到随考', NULL, '.xlsx', 0.01, 'f4eaf9be475a0dcb78e9bd07a945ec5e', '{\"path\":\"file/2020/7/22/ff6c7b1b05b74eb9a7c0f4a7b6923750.xlsx\",\"uploadType\":3,\"type\":\"local\"}', '2020-07-22 17:59:40', 1);
+INSERT INTO `t_b_attachment` VALUES (18765091629432832, '考场监考老师导入_new', NULL, '.xlsx', 0.01, 'f398c87d5b3a1888c8712f339ab2c118', '{\"path\":\"file/2020/7/22/486d079235514b809c677428727e8912.xlsx\",\"uploadType\":3,\"type\":\"local\"}', '2020-07-22 18:45:46', 1);
 COMMIT;
 
 -- ----------------------------
@@ -318,12 +320,16 @@ CREATE TABLE `t_b_exam_invigilate_user` (
 -- Records of t_b_exam_invigilate_user
 -- ----------------------------
 BEGIN;
-INSERT INTO `t_b_exam_invigilate_user` VALUES (18015293389406208, NULL, 18015290906378240, 'test1', 'test1');
-INSERT INTO `t_b_exam_invigilate_user` VALUES (18015294836441088, NULL, 18015294173741056, 'test1', 'test1');
-INSERT INTO `t_b_exam_invigilate_user` VALUES (18015295973097472, NULL, 18015295335563264, 'test1', 'test1');
-INSERT INTO `t_b_exam_invigilate_user` VALUES (18015296627408896, NULL, NULL, 'test2', 'test2');
-INSERT INTO `t_b_exam_invigilate_user` VALUES (18015297063616512, NULL, NULL, 'test2', 'test2');
-INSERT INTO `t_b_exam_invigilate_user` VALUES (18015297629847552, NULL, NULL, 'test2', 'test2');
+INSERT INTO `t_b_exam_invigilate_user` VALUES (18747037654712320, 1, NULL, '20200715002', '大学英语考场');
+INSERT INTO `t_b_exam_invigilate_user` VALUES (18747037893787648, 1, NULL, '20200715001', '大学语文考场');
+INSERT INTO `t_b_exam_invigilate_user` VALUES (18753491958759424, 1, NULL, '20200715004', '大学语文随到随考考场');
+INSERT INTO `t_b_exam_invigilate_user` VALUES (18753492000702464, 1, NULL, '20200715003', '大学英语随到随考考场');
+INSERT INTO `t_b_exam_invigilate_user` VALUES (18765092195663872, 1, 3, '20200715001', '大学语文考场');
+INSERT INTO `t_b_exam_invigilate_user` VALUES (18765092271161344, 1, 4, '20200715001', '大学语文考场');
+INSERT INTO `t_b_exam_invigilate_user` VALUES (18765092636065792, 1, 5, '20200715002', '大学英语考场');
+INSERT INTO `t_b_exam_invigilate_user` VALUES (18765092749312000, 1, 6, '20200715002', '大学英语考场');
+INSERT INTO `t_b_exam_invigilate_user` VALUES (18765093063884800, 1, 18765092862558208, '20200715003', '大学英语随到随考考场');
+INSERT INTO `t_b_exam_invigilate_user` VALUES (18765093223268352, 1, 18765093122605056, '20200715004', '大学语文随到随考考场');
 COMMIT;
 
 -- ----------------------------
@@ -409,6 +415,7 @@ BEGIN;
 INSERT INTO `t_b_role` VALUES (1, 'SUPER_ADMIN', '系统管理员', '2020-07-02 12:08:31');
 INSERT INTO `t_b_role` VALUES (2, 'TEACHER', '老师', '2020-07-02 12:08:31');
 INSERT INTO `t_b_role` VALUES (3, 'STUDENT', '学生', '2020-07-02 12:08:31');
+INSERT INTO `t_b_role` VALUES (4, 'INVIGILATE', '监考员', '2020-07-02 12:08:31');
 COMMIT;
 
 -- ----------------------------
@@ -433,6 +440,11 @@ INSERT INTO `t_b_role_privilege` VALUES (4, 'TEACHER', 6);
 INSERT INTO `t_b_role_privilege` VALUES (5, 'STUDENT', 8);
 INSERT INTO `t_b_role_privilege` VALUES (6, 'STUDENT', 7);
 INSERT INTO `t_b_role_privilege` VALUES (7, 'TEACHER', 4);
+INSERT INTO `t_b_role_privilege` VALUES (8, 'INVIGILATE', 1);
+INSERT INTO `t_b_role_privilege` VALUES (9, 'INVIGILATE', 2);
+INSERT INTO `t_b_role_privilege` VALUES (10, 'INVIGILATE', 3);
+INSERT INTO `t_b_role_privilege` VALUES (11, 'INVIGILATE', 6);
+INSERT INTO `t_b_role_privilege` VALUES (12, 'INVIGILATE', 4);
 COMMIT;
 
 -- ----------------------------
@@ -455,6 +467,13 @@ CREATE TABLE `t_b_session` (
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会话信息';
 
+-- ----------------------------
+-- Records of t_b_session
+-- ----------------------------
+BEGIN;
+INSERT INTO `t_b_session` VALUES ('1-1591624781-web', '1', '[SUPER_ADMIN]', 'web', 'web', '1234567891', '0:0:0:0:0:0:0:1', 'vW6bxpGQ1f9gUX34uOO4QNThQUJdcqze', '2020-07-22 16:58:01', NULL, '2020-07-22 16:58:04', '2020-07-23 16:58:01');
+COMMIT;
+
 -- ----------------------------
 -- Table structure for t_b_task_history
 -- ----------------------------
@@ -481,8 +500,9 @@ CREATE TABLE `t_b_task_history` (
 -- Records of t_b_task_history
 -- ----------------------------
 BEGIN;
-INSERT INTO `t_b_task_history` VALUES (18015241904324608, 3, 18015229329801216, 2, '共处理了2条数据', 100, '考场监考老师导入_new', '{\"path\":\"file/2020/7/20/3f8d1fc4bd8948efa61e778f66c4e26e.xlsx\",\"uploadType\":3,\"type\":\"local\"}', '{\"path\":\"file/2020/7/20/270369e7beb74c11b7ef0309a2dc6b7e.txt\",\"type\":\"local\"}', NULL, 1, '2020-07-20 17:06:08', '2020-07-20 17:06:08', '2020-07-20 17:06:22');
-INSERT INTO `t_b_task_history` VALUES (18015514961903616, 4, NULL, 2, '共导出了2条数据', 100, NULL, NULL, '{\"path\":\"file/2020/7/20/d7843c6b7ceb4952a22fe083fe11ab94.txt\",\"type\":\"local\"}', NULL, 1, '2020-07-20 17:07:13', '2020-07-20 17:07:13', '2020-07-20 17:07:14');
+INSERT INTO `t_b_task_history` VALUES (18746951033946112, 1, 18746949960204288, 2, '共处理了4条数据', 100, '考生导入_在线考试_集中统一', '{\"path\":\"file/2020/7/22/33dcc45a438c429c82a51b0caf8d1de3.xlsx\",\"uploadType\":3,\"type\":\"local\"}', '{\"path\":\"file/2020/7/22/2b084578fa134099b6c58e866a041b34.txt\",\"type\":\"local\"}', NULL, 1, '2020-07-22 17:33:41', '2020-07-22 17:33:41', '2020-07-22 17:34:02');
+INSERT INTO `t_b_task_history` VALUES (18753488615899136, 1, 18753488498458624, 2, '共处理了3条数据', 100, '考生导入_在线考试_随到随考', '{\"path\":\"file/2020/7/22/ff6c7b1b05b74eb9a7c0f4a7b6923750.xlsx\",\"uploadType\":3,\"type\":\"local\"}', '{\"path\":\"file/2020/7/22/24f599c967ba4867bdbdb284d506ba6d.txt\",\"type\":\"local\"}', NULL, 1, '2020-07-22 17:59:40', '2020-07-22 17:59:40', '2020-07-22 17:59:41');
+INSERT INTO `t_b_task_history` VALUES (18765091700736000, 3, 18765091629432832, 2, '共处理了4条数据', 100, '考场监考老师导入_new', '{\"path\":\"file/2020/7/22/486d079235514b809c677428727e8912.xlsx\",\"uploadType\":3,\"type\":\"local\"}', '{\"path\":\"file/2020/7/22/167b29ee5c7443159f9adaf0bf47c9ac.txt\",\"type\":\"local\"}', NULL, 1, '2020-07-22 18:45:46', '2020-07-22 18:45:46', '2020-07-22 18:45:47');
 COMMIT;
 
 -- ----------------------------
@@ -510,78 +530,13 @@ CREATE TABLE `t_b_user` (
 -- ----------------------------
 BEGIN;
 INSERT INTO `t_b_user` VALUES (1, 'sysadmin', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-02 12:08:31', NULL, '系统管理员', 'sysadmin', NULL, NULL);
-INSERT INTO `t_b_user` VALUES (2, 't1', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, 1, '2020-07-02 12:08:31', NULL, NULL, '测试老师1', NULL, NULL);
-INSERT INTO `t_b_user` VALUES (3, 's1', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, 1, '2020-07-02 12:08:31', NULL, NULL, '测试学生1', NULL, NULL);
-INSERT INTO `t_b_user` VALUES (14404271441182720, 's3', 'yXVUkR45PFz0UfpbDB8/ew==', '111111', 1, 1, '2020-07-10 17:57:30', '2020-07-11 16:20:09', NULL, 's2', 14404271441182720, 14404271441182720);
-INSERT INTO `t_b_user` VALUES (17628396129353728, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 15:28:57', '2020-07-19 15:28:57', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17628396439732224, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 15:28:57', '2020-07-19 15:28:57', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17628396913688576, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 15:28:57', '2020-07-19 15:28:57', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17629134704345088, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 15:31:53', '2020-07-19 15:31:53', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17629134876311552, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 15:31:53', '2020-07-19 15:31:53', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17629135090221056, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 15:31:53', '2020-07-19 15:31:53', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17629692576137216, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 15:34:06', '2020-07-19 15:34:06', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17629692727132160, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 15:34:06', '2020-07-19 15:34:06', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17629692899098624, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 15:34:06', '2020-07-19 15:34:06', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17630192520396800, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 15:36:05', '2020-07-19 15:36:05', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17630192801415168, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 15:36:06', '2020-07-19 15:36:06', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17630192923049984, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 15:36:06', '2020-07-19 15:36:06', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17630388323090432, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 15:36:52', '2020-07-19 15:36:52', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17630388478279680, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 15:36:52', '2020-07-19 15:36:52', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17630388604108800, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 15:36:52', '2020-07-19 15:36:52', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17630508695420928, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 15:37:21', '2020-07-19 15:37:21', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17630508892553216, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 15:37:21', '2020-07-19 15:37:21', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17630509051936768, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 15:37:21', '2020-07-19 15:37:21', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17632976447733760, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 15:47:09', '2020-07-19 15:47:09', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17632976594534400, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 15:47:09', '2020-07-19 15:47:09', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17632976762306560, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 15:47:09', '2020-07-19 15:47:09', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17638307781410816, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 16:08:20', '2020-07-19 16:08:20', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17638307928211456, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 16:08:20', '2020-07-19 16:08:20', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17638308087595008, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 16:08:20', '2020-07-19 16:08:20', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17641116367060992, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 16:19:31', '2020-07-19 16:19:31', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17641192699199488, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 16:19:48', '2020-07-19 16:19:48', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17641227776163840, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 16:19:57', '2020-07-19 16:19:57', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17642815764824064, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 16:26:15', '2020-07-19 16:26:15', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17642816393969664, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 16:26:15', '2020-07-19 16:26:15', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17642816960200704, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 16:26:15', '2020-07-19 16:26:15', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17643037630922752, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 16:27:09', '2020-07-19 16:27:09', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17643079150338048, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 16:27:18', '2020-07-19 16:27:18', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17643079360053248, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 16:27:18', '2020-07-19 16:27:18', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17643668424884224, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 16:29:38', '2020-07-19 16:29:38', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17643668693319680, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 16:29:38', '2020-07-19 16:29:38', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17643668877869056, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 16:29:38', '2020-07-19 16:29:38', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17643913879748608, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 16:30:37', '2020-07-19 16:30:37', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17643918917107712, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 16:30:38', '2020-07-19 16:30:38', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17643925518942208, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-19 16:30:40', '2020-07-19 16:30:40', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17644323587751936, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, 1, '2020-07-19 16:32:15', '2020-07-19 16:32:15', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17644324263034880, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, 1, '2020-07-19 16:32:15', '2020-07-19 16:32:15', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17644324971872256, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, 1, '2020-07-19 16:32:15', '2020-07-19 16:32:15', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17905926027608064, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 09:51:45', '2020-07-20 09:51:45', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17905932604276736, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 09:51:47', '2020-07-20 09:51:47', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17905936777609216, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 09:51:48', '2020-07-20 09:51:48', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17993009224220672, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 15:37:48', '2020-07-20 15:37:48', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17993011417841664, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 15:37:48', '2020-07-20 15:37:48', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17993012646772736, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 15:37:49', '2020-07-20 15:37:49', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17993496052891648, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 15:39:44', '2020-07-20 15:39:44', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17993499475443712, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 15:39:45', '2020-07-20 15:39:45', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17993502218518528, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 15:39:45', '2020-07-20 15:39:45', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17993634368454656, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 15:40:17', '2020-07-20 15:40:17', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17993636444635136, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 15:40:17', '2020-07-20 15:40:17', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17993637983944704, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 15:40:18', '2020-07-20 15:40:18', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17993764735811584, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 15:40:48', '2020-07-20 15:40:48', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17993769471180800, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 15:40:49', '2020-07-20 15:40:49', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17993775901048832, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 15:40:50', '2020-07-20 15:40:50', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17998679738679296, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 16:00:20', '2020-07-20 16:00:20', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17998683677130752, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 16:00:21', '2020-07-20 16:00:21', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (17998689754677248, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 16:00:22', '2020-07-20 16:00:22', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (18007367681572864, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 16:34:51', '2020-07-20 16:34:51', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (18007368675622912, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 16:34:51', '2020-07-20 16:34:51', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (18007369082470400, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 16:34:51', '2020-07-20 16:34:51', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (18007886936408064, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 16:36:55', '2020-07-20 16:36:55', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (18007887896903680, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 16:36:55', '2020-07-20 16:36:55', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (18007888739958784, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 16:36:55', '2020-07-20 16:36:55', NULL, '789', 1, NULL);
-INSERT INTO `t_b_user` VALUES (18015290906378240, '123', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 17:06:20', '2020-07-20 17:06:20', NULL, '123', 1, NULL);
-INSERT INTO `t_b_user` VALUES (18015294173741056, '456', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 17:06:21', '2020-07-20 17:06:21', NULL, '456', 1, NULL);
-INSERT INTO `t_b_user` VALUES (18015295335563264, '789', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, NULL, '2020-07-20 17:06:21', '2020-07-20 17:06:21', NULL, '789', 1, NULL);
+INSERT INTO `t_b_user` VALUES (2, 't1', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, 1, '2020-07-02 12:08:31', NULL, NULL, '测试老师1', 1, NULL);
+INSERT INTO `t_b_user` VALUES (3, 'i1', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, 1, '2020-07-02 12:08:31', NULL, NULL, '监考老师1', 1, NULL);
+INSERT INTO `t_b_user` VALUES (4, 'i2', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, 1, '2020-07-02 12:08:31', NULL, NULL, '监考老师2', 1, NULL);
+INSERT INTO `t_b_user` VALUES (5, 'i3', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, 1, '2020-07-02 12:08:31', NULL, NULL, '监考老师3', 1, NULL);
+INSERT INTO `t_b_user` VALUES (6, 'i4', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, 1, '2020-07-02 12:08:31', NULL, NULL, '监考老师4', 1, NULL);
+INSERT INTO `t_b_user` VALUES (18765092862558208, 'i5', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, 1, '2020-07-22 18:45:47', '2020-07-22 18:45:47', NULL, 'i5', 1, NULL);
+INSERT INTO `t_b_user` VALUES (18765093122605056, 'i6', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, 1, 1, '2020-07-22 18:45:47', '2020-07-22 18:45:47', NULL, 'i6', 1, NULL);
 COMMIT;
 
 -- ----------------------------
@@ -601,10 +556,18 @@ CREATE TABLE `t_b_user_role` (
 BEGIN;
 INSERT INTO `t_b_user_role` VALUES (1, 1, 'SUPER_ADMIN');
 INSERT INTO `t_b_user_role` VALUES (2, 2, 'TEACHER');
-INSERT INTO `t_b_user_role` VALUES (3, 3, 'STUDENT');
-INSERT INTO `t_b_user_role` VALUES (18015292714123264, 18015290906378240, 'TEACHER');
-INSERT INTO `t_b_user_role` VALUES (18015294379261952, 18015294173741056, 'TEACHER');
-INSERT INTO `t_b_user_role` VALUES (18015295545278464, 18015295335563264, 'TEACHER');
+INSERT INTO `t_b_user_role` VALUES (3, 3, 'TEACHER');
+INSERT INTO `t_b_user_role` VALUES (4, 3, 'INVIGILATE');
+INSERT INTO `t_b_user_role` VALUES (5, 4, 'TEACHER');
+INSERT INTO `t_b_user_role` VALUES (6, 4, 'INVIGILATE');
+INSERT INTO `t_b_user_role` VALUES (7, 5, 'TEACHER');
+INSERT INTO `t_b_user_role` VALUES (8, 5, 'INVIGILATE');
+INSERT INTO `t_b_user_role` VALUES (9, 6, 'TEACHER');
+INSERT INTO `t_b_user_role` VALUES (10, 6, 'INVIGILATE');
+INSERT INTO `t_b_user_role` VALUES (18765092925472768, 18765092862558208, 'TEACHER');
+INSERT INTO `t_b_user_role` VALUES (18765092992581632, 18765092862558208, 'INVIGILATE');
+INSERT INTO `t_b_user_role` VALUES (18765093160353792, 18765093122605056, 'TEACHER');
+INSERT INTO `t_b_user_role` VALUES (18765093193908224, 18765093122605056, 'INVIGILATE');
 COMMIT;
 
 -- ----------------------------
@@ -620,6 +583,13 @@ CREATE TABLE `t_e_config` (
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='全局配置';
 
+-- ----------------------------
+-- Records of t_e_config
+-- ----------------------------
+BEGIN;
+INSERT INTO `t_e_config` VALUES (1, 95, 3, 3, 30);
+COMMIT;
+
 -- ----------------------------
 -- Table structure for t_e_exam
 -- ----------------------------
@@ -676,6 +646,14 @@ CREATE TABLE `t_e_exam` (
   UNIQUE KEY `t_e_exam_orgId_code_Idx` (`org_id`,`code`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='考试批次';
 
+-- ----------------------------
+-- Records of t_e_exam
+-- ----------------------------
+BEGIN;
+INSERT INTO `t_e_exam` VALUES (18738036992901120, 1, '202007130001', '20200713test1', '20200713001', '2020-07-13 00:00:00', '2020-07-14 00:00:00', '456321', 10, 5, '我是考前须知1', 10, '我是考后说明1', 3, 60, 5, 1, 1, 1, 1, 1, 1, 1, 1, '2020-07-22 16:58:17', '2020-07-22 16:58:17', 0, 1, NULL, 10, 120, 1, 3, 1, 0, 1, 10, 3, 1, 1, 1, '192.168.10.2,192.168.10.3', NULL, 1, NULL, 1, 1);
+INSERT INTO `t_e_exam` VALUES (18738491387019264, 1, '202007130002', '20200713test2', '20200713002', '2020-07-14 00:00:00', '2020-07-15 00:00:00', '456321', 10, 5, '我是考前须知2', 10, '我是考后说明2', 3, 60, 5, 1, 1, 1, 1, 1, 1, 1, 1, '2020-07-22 17:00:05', '2020-07-22 17:00:05', 1, 1, NULL, 10, 120, 1, 3, 1, 0, 1, 10, 3, 1, 1, 1, '192.168.10.2,192.168.10.3', NULL, 1, NULL, 1, 1);
+COMMIT;
+
 -- ----------------------------
 -- Table structure for t_e_exam_activity
 -- ----------------------------
@@ -702,12 +680,9 @@ CREATE TABLE `t_e_exam_activity` (
 -- Records of t_e_exam_activity
 -- ----------------------------
 BEGIN;
-INSERT INTO `t_e_exam_activity` VALUES (15750500083302400, 15443735328325632, '20200714test3', 10, 90, 1, 5, '2020-07-14 00:00:00', '2020-07-15 00:00:00', '2020-07-14 11:06:52', '2020-07-14 11:33:16', 1, 1);
-INSERT INTO `t_e_exam_activity` VALUES (15750500083302401, 15443735328325632, '20200714test4', 10, 90, 1, 5, '2020-07-15 00:00:00', '2020-07-16 00:00:00', '2020-07-14 11:06:52', '2020-07-14 11:33:16', 1, 1);
-INSERT INTO `t_e_exam_activity` VALUES (1282881659092598785, 1282881658698334209, '20200714test3', 10, 90, 1, 5, '2020-07-14 00:00:00', '2020-07-15 00:00:00', '2020-07-14 11:36:37', '2020-07-14 11:36:37', 1, NULL);
-INSERT INTO `t_e_exam_activity` VALUES (1282881659184873473, 1282881658698334209, '20200714test4', 10, 90, 1, 5, '2020-07-15 00:00:00', '2020-07-16 00:00:00', '2020-07-14 11:36:37', '2020-07-14 11:36:37', 1, NULL);
-INSERT INTO `t_e_exam_activity` VALUES (1282881768928837634, 1282881768819785729, '20200714test3', 10, 90, 1, 5, '2020-07-14 00:00:00', '2020-07-15 00:00:00', '2020-07-14 11:37:03', '2020-07-14 11:37:03', 1, NULL);
-INSERT INTO `t_e_exam_activity` VALUES (1282881768962392065, 1282881768819785729, '20200714test4', 10, 90, 1, 5, '2020-07-15 00:00:00', '2020-07-16 00:00:00', '2020-07-14 11:37:03', '2020-07-14 11:37:03', 1, NULL);
+INSERT INTO `t_e_exam_activity` VALUES (18740006973603840, 18738036992901120, '202007130001-activity1', 10, 90, 1, 5, '2020-07-13 08:00:00', '2020-07-13 12:00:00', '2020-07-22 17:06:07', '2020-07-22 17:06:07', 1, NULL);
+INSERT INTO `t_e_exam_activity` VALUES (18740006977798144, 18738036992901120, '202007130001-activity2', 10, 90, 1, 5, '2020-07-13 14:00:00', '2020-07-13 18:00:00', '2020-07-22 17:06:07', '2020-07-22 17:06:07', 1, NULL);
+INSERT INTO `t_e_exam_activity` VALUES (18740448562511872, 18738491387019264, '202007130002-activity1', 10, 90, 1, 5, '2020-07-14 08:00:00', '2020-07-14 22:00:00', '2020-07-22 17:07:51', '2020-07-22 17:07:51', 1, NULL);
 COMMIT;
 
 -- ----------------------------
@@ -749,6 +724,16 @@ CREATE TABLE `t_e_exam_course` (
   UNIQUE KEY `t_e_exam_course_examId_courseCode_Idx` (`exam_id`,`course_code`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='考试科目';
 
+-- ----------------------------
+-- Records of t_e_exam_course
+-- ----------------------------
+BEGIN;
+INSERT INTO `t_e_exam_course` VALUES (18741288576745472, 18738036992901120, 'YW001', '大学语文', 1, 1, 2, NULL, 3);
+INSERT INTO `t_e_exam_course` VALUES (18741587748061184, 18738036992901120, 'YY001', '大学英语', 1, 1, 2, NULL, 1);
+INSERT INTO `t_e_exam_course` VALUES (18743613794025472, 18738491387019264, 'YW002', '大学语文', 0, 0, 1, NULL, 3);
+INSERT INTO `t_e_exam_course` VALUES (18743690130358272, 18738491387019264, 'YY002', '大学英语', 0, 0, 1, NULL, 1);
+COMMIT;
+
 -- ----------------------------
 -- Table structure for t_e_exam_paper
 -- ----------------------------
@@ -778,6 +763,18 @@ CREATE TABLE `t_e_exam_paper` (
   UNIQUE KEY `t_e_exam_paper_examId_code_Idx` (`exam_id`,`code`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='考试试卷';
 
+-- ----------------------------
+-- Records of t_e_exam_paper
+-- ----------------------------
+BEGIN;
+INSERT INTO `t_e_exam_paper` VALUES (1, '大学语文2020测试卷A', 100, 'http://111', '123456', 1, 1, '2020-07-22 17:06:07', NULL, 18738036992901120, 'YWP001', 'http://222', 1, 100, 3, 1, NULL, 'YW001', 'http://333', '123456789');
+INSERT INTO `t_e_exam_paper` VALUES (2, '大学英语2020测试卷A', 120, 'http://111', '123456', 2, 1, '2020-07-22 17:06:07', NULL, 18738036992901120, 'YYP001', 'http://222', 1, 90, 3, 1, NULL, 'YY001', 'http://333', '123456789');
+INSERT INTO `t_e_exam_paper` VALUES (3, '大学语文2020测试卷B', 100, 'http://111', '123456', 0, 1, '2020-07-22 17:06:07', NULL, 18738036992901120, 'YWP002', 'http://222', 1, 90, 3, 1, NULL, 'YW001', 'http://333', '123456789');
+INSERT INTO `t_e_exam_paper` VALUES (4, '大学英语2020测试卷B', 120, 'http://111', '123456', 1, 1, '2020-07-22 17:06:07', NULL, 18738036992901120, 'YYP002', 'http://222', 1, 100, 3, 1, NULL, 'YY001', 'http://333', '123456789');
+INSERT INTO `t_e_exam_paper` VALUES (5, '大学语文2020随到随考卷', 100, 'http://111', '123456', 0, 1, '2020-07-22 17:06:07', NULL, 18738491387019264, 'YWP003', 'http://222', 1, 100, 3, 1, NULL, 'YW002', 'http://333', '123456789');
+INSERT INTO `t_e_exam_paper` VALUES (6, '大学英语2020随到随考卷', 100, 'http://111', '123456', 1, 1, '2020-07-22 17:06:07', NULL, 18738491387019264, 'YYP003', 'http://222', 1, 100, 3, 1, NULL, 'YY002', 'http://333', '123456789');
+COMMIT;
+
 -- ----------------------------
 -- Table structure for t_e_exam_reexam
 -- ----------------------------
@@ -831,19 +828,32 @@ CREATE TABLE `t_e_exam_student` (
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='考生库';
 
+-- ----------------------------
+-- Records of t_e_exam_student
+-- ----------------------------
+BEGIN;
+INSERT INTO `t_e_exam_student` VALUES (1285870704202616834, 18738036992901120, 18740006973603840, 18747031182901248, 'YW001', '20200715001', '42112319900101001X', '张三', NULL, NULL, NULL, NULL, '大学语文考场', 1, '2020-07-22 17:34:01', '2020-07-22 17:34:01', 1, NULL, '2020', '教学班级1', '大学语文');
+INSERT INTO `t_e_exam_student` VALUES (1285870705850978305, 18738036992901120, 18740006973603840, 18747033628180480, 'YW001', '20200715001', '42112319900101002X', '李四', NULL, NULL, NULL, NULL, '大学语文考场', 1, '2020-07-22 17:34:01', '2020-07-22 17:34:01', 1, NULL, '2020', '教学班级1', '大学语文');
+INSERT INTO `t_e_exam_student` VALUES (1285870707079909378, 18738036992901120, 18740006977798144, 18747034915831808, 'YY001', '20200715002', '42112319900101003X', '王五', NULL, NULL, NULL, NULL, '大学英语考场', 1, '2020-07-22 17:34:02', '2020-07-22 17:34:02', 1, NULL, '2020', '教学班级2', '大学英语');
+INSERT INTO `t_e_exam_student` VALUES (1285870708350783489, 18738036992901120, 18740006977798144, 18747036253814784, 'YY001', '20200715002', '42112319900101004X', '赵六', NULL, NULL, NULL, NULL, '大学英语考场', 1, '2020-07-22 17:34:02', '2020-07-22 17:34:02', 1, NULL, '2020', '教学班级2', '大学英语');
+INSERT INTO `t_e_exam_student` VALUES (1285877162319286274, 18738491387019264, 18740448562511872, 18747036253814784, 'YY002', '20200715003', '42112319900101004X', '赵六', NULL, NULL, NULL, NULL, '大学英语随到随考考场', 1, '2020-07-22 17:59:41', '2020-07-22 17:59:41', 1, NULL, '2020', '教学班级2', '大学英语');
+INSERT INTO `t_e_exam_student` VALUES (1285877162654830594, 18738491387019264, 18740448562511872, 18753490805325824, 'YY002', '20200715003', '42112319900101005X', '朱七', NULL, NULL, NULL, NULL, '大学英语随到随考考场', 1, '2020-07-22 17:59:41', '2020-07-22 17:59:41', 1, NULL, '2020', '教学班级3', '大学英语');
+INSERT INTO `t_e_exam_student` VALUES (1285877163447554049, 18738491387019264, 18740448562511872, 18753491614826496, 'YW002', '20200715004', '42112319900101006X', '刘八', NULL, NULL, NULL, NULL, '大学语文随到随考考场', 1, '2020-07-22 17:59:41', '2020-07-22 17:59:41', 1, NULL, '2020', '教学班级3', '大学语文');
+COMMIT;
+
 -- ----------------------------
 -- Table structure for t_e_exam_student_log
 -- ----------------------------
 DROP TABLE IF EXISTS `t_e_exam_student_log`;
 CREATE TABLE `t_e_exam_student_log` (
   `id` bigint NOT NULL COMMENT '主键',
-  `exam_id` bigint NOT NULL COMMENT '考试ID',
-  `exam_activity_id` bigint NOT NULL COMMENT '场次ID',
-  `exam_record_id` bigint NOT NULL COMMENT '考试记录ID',
-  `exam_student_id` bigint NOT NULL COMMENT '考生id',
+  `exam_id` bigint DEFAULT NULL COMMENT '考试ID',
+  `exam_activity_id` bigint DEFAULT NULL COMMENT '场次ID',
+  `exam_record_id` bigint DEFAULT NULL COMMENT '考试记录ID',
+  `exam_student_id` bigint DEFAULT NULL COMMENT '考生id',
   `type` tinyint DEFAULT NULL COMMENT '类型',
   `description` varchar(1000) DEFAULT NULL COMMENT '描述',
-  `remark` varchar(1000) DEFAULT NULL COMMENT '备注',
+  `remark` mediumtext COMMENT '备注',
   `create_time` datetime DEFAULT NULL COMMENT '创建时间',
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='考生轨迹';
@@ -888,6 +898,18 @@ CREATE TABLE `t_e_student` (
   UNIQUE KEY `t_e_student_orgId_identity_Idx` (`org_id`,`identity`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='学生档案';
 
+-- ----------------------------
+-- Records of t_e_student
+-- ----------------------------
+BEGIN;
+INSERT INTO `t_e_student` VALUES (18747031182901248, 1, '42112319900101001X', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, NULL, '张三', NULL, NULL, '2020-07-22 17:34:01', '2020-07-22 17:34:01', 1, NULL, 1);
+INSERT INTO `t_e_student` VALUES (18747033628180480, 1, '42112319900101002X', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, NULL, '李四', NULL, NULL, '2020-07-22 17:34:01', '2020-07-22 17:34:01', 1, NULL, 1);
+INSERT INTO `t_e_student` VALUES (18747034915831808, 1, '42112319900101003X', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, NULL, '王五', NULL, NULL, '2020-07-22 17:34:01', '2020-07-22 17:34:01', 1, NULL, 1);
+INSERT INTO `t_e_student` VALUES (18747036253814784, 1, '42112319900101004X', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, NULL, '赵六', NULL, NULL, '2020-07-22 17:34:02', '2020-07-22 17:34:02', 1, NULL, 1);
+INSERT INTO `t_e_student` VALUES (18753490805325824, 1, '42112319900101005X', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, NULL, '朱七', NULL, NULL, '2020-07-22 17:59:41', '2020-07-22 17:59:41', 1, NULL, 1);
+INSERT INTO `t_e_student` VALUES (18753491614826496, 1, '42112319900101006X', 'yXVUkR45PFz0UfpbDB8/ew==', NULL, NULL, '刘八', NULL, NULL, '2020-07-22 17:59:41', '2020-07-22 17:59:41', 1, NULL, 1);
+COMMIT;
+
 -- ----------------------------
 -- Table structure for t_e_user_log
 -- ----------------------------
@@ -902,6 +924,13 @@ CREATE TABLE `t_e_user_log` (
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户轨迹';
 
+-- ----------------------------
+-- Records of t_e_user_log
+-- ----------------------------
+BEGIN;
+INSERT INTO `t_e_user_log` VALUES (18737986409594880, 1, 6, '登录', '{\"id\":\"8734ccef322d4aaebde4c39b5c088233\",\"topic\":\"themis-topic-userLog\",\"tag\":\"user\",\"timestamp\":1595408281791,\"body\":\"LOGIN\",\"type\":\"USER_LOG\",\"objId\":\"1\",\"objName\":\"sysadmin\",\"ack\":0,\"sequence\":null,\"properties\":null}', '2020-07-22 16:58:04');
+COMMIT;
+
 -- ----------------------------
 -- Table structure for t_ie_exam_invigilate_notice
 -- ----------------------------
@@ -981,8 +1010,11 @@ CREATE TABLE `t_m_rocket_message` (
 -- Records of t_m_rocket_message
 -- ----------------------------
 BEGIN;
-INSERT INTO `t_m_rocket_message` VALUES ('0b18b0d8574f40f6a17203beecd9f73c', 'themis-topic-task', 'roomCodeImport', '{\"tbTaskHistory\":{\"id\":18015241904324608,\"type\":3,\"entityId\":18015229329801216,\"status\":0,\"summary\":\"准备开始处理导入数据\",\"progress\":0.0,\"importFileName\":\"考场监考老师导入_new\",\"importFilePath\":\"{\\\"path\\\":\\\"file/2020/7/20/3f8d1fc4bd8948efa61e778f66c4e26e.xlsx\\\",\\\"uploadType\\\":3,\\\"type\\\":\\\"local\\\"}\",\"resultFilePath\":null,\"errorFilePath\":null,\"createId\":1,\"createTime\":1595235968390,\"startTime\":1595235968377,\"finishTime\":null},\"createId\":1,\"remark\":\"{\\\"path\\\":\\\"file/2020/7/20/3f8d1fc4bd8948efa61e778f66c4e26e.xlsx\\\",\\\"uploadType\\\":3,\\\"type\\\":\\\"local\\\"}\",\"orgId\":null}', 'TASK_LOG', '18015241904324608', 'sysadmin', 2, NULL, NULL, '2020-07-20 17:06:19', 1595235968597);
-INSERT INTO `t_m_rocket_message` VALUES ('26102d9899db40f3895e48acc7511bc2', 'themis-topic-task', 'roomCodeExport', '{\"tbTaskHistory\":{\"id\":18015514961903616,\"type\":4,\"entityId\":null,\"status\":0,\"summary\":\"准备开始处理导出数据\",\"progress\":0.0,\"importFileName\":null,\"importFilePath\":null,\"resultFilePath\":null,\"errorFilePath\":null,\"createId\":1,\"createTime\":1595236033506,\"startTime\":1595236033479,\"finishTime\":null},\"createId\":1,\"orgId\":null}', 'TASK_LOG', '18015514961903616', 'sysadmin', 2, NULL, NULL, '2020-07-20 17:07:14', 1595236033645);
+INSERT INTO `t_m_rocket_message` VALUES ('2caf4a878a6f40f883043ea6fbaa7796', 'themis-topic-task', 'roomCodeImport', '{\"tbTaskHistory\":{\"id\":18765091700736000,\"type\":3,\"entityId\":18765091629432832,\"status\":0,\"summary\":\"准备开始处理导入数据\",\"progress\":0.0,\"importFileName\":\"考场监考老师导入_new\",\"importFilePath\":\"{\\\"path\\\":\\\"file/2020/7/22/486d079235514b809c677428727e8912.xlsx\\\",\\\"uploadType\\\":3,\\\"type\\\":\\\"local\\\"}\",\"resultFilePath\":null,\"errorFilePath\":null,\"createId\":1,\"createTime\":1595414746500,\"startTime\":1595414746500,\"finishTime\":null},\"createId\":1,\"remark\":\"{\\\"path\\\":\\\"file/2020/7/22/486d079235514b809c677428727e8912.xlsx\\\",\\\"uploadType\\\":3,\\\"type\\\":\\\"local\\\"}\",\"orgId\":null}', 'TASK_LOG', '18765091700736000', 'sysadmin', 2, NULL, NULL, '2020-07-22 18:45:47', 1595414746507);
+INSERT INTO `t_m_rocket_message` VALUES ('63e40d8fdecb47238917d99f05b3443d', 'themis-topic-task', 'examStudentImport', '{\"mode\":1,\"tbExamInvigilateUserMap\":{\"20200715002:大学英语考场\":\"20200715002:大学英语考场\",\"20200715001:大学语文考场\":\"20200715001:大学语文考场\"},\"tbTaskHistory\":{\"id\":18753488615899136,\"type\":1,\"entityId\":18753488498458624,\"status\":0,\"summary\":\"准备开始处理导入数据\",\"progress\":0.0,\"importFileName\":\"考生导入_在线考试_随到随考\",\"importFilePath\":\"{\\\"path\\\":\\\"file/2020/7/22/ff6c7b1b05b74eb9a7c0f4a7b6923750.xlsx\\\",\\\"uploadType\\\":3,\\\"type\\\":\\\"local\\\"}\",\"resultFilePath\":null,\"errorFilePath\":null,\"createId\":1,\"createTime\":1595411980129,\"startTime\":1595411980109,\"finishTime\":null},\"createId\":1,\"examId\":18738491387019264,\"teExamActivityMap\":{\"202007130002-activity1\":{\"id\":18740448562511872,\"createId\":1,\"createTime\":1595408871000,\"updateId\":null,\"updateTime\":1595408871000,\"examId\":18738491387019264,\"code\":\"202007130002-activity1\",\"prepareSeconds\":10,\"maxDurationSeconds\":90,\"enable\":1,\"openingSeconds\":5,\"startTime\":1594684800000,\"finishTime\":1594735200000}},\"remark\":\"{\\\"path\\\":\\\"file/2020/7/22/ff6c7b1b05b74eb9a7c0f4a7b6923750.xlsx\\\",\\\"uploadType\\\":3,\\\"type\\\":\\\"local\\\"}\",\"orgId\":1}', 'TASK_LOG', '18753488615899136', 'sysadmin', 2, NULL, NULL, '2020-07-22 17:59:40', 1595411980239);
+INSERT INTO `t_m_rocket_message` VALUES ('7ea742c25d1c4579865880488b09d64e', 'themis-topic-task', 'examStudentImport', '{\"mode\":0,\"tbTaskHistory\":{\"id\":18746951033946112,\"type\":1,\"entityId\":18746949960204288,\"status\":0,\"summary\":\"准备开始处理导入数据\",\"progress\":0.0,\"importFileName\":\"考生导入_在线考试_集中统一\",\"importFilePath\":\"{\\\"path\\\":\\\"file/2020/7/22/33dcc45a438c429c82a51b0caf8d1de3.xlsx\\\",\\\"uploadType\\\":3,\\\"type\\\":\\\"local\\\"}\",\"resultFilePath\":null,\"errorFilePath\":null,\"createId\":1,\"createTime\":1595410421800,\"startTime\":1595410421428,\"finishTime\":null},\"createId\":1,\"examId\":18738036992901120,\"teExamActivityMap\":{\"202007130001-activity2\":{\"id\":18740006977798144,\"createId\":1,\"createTime\":1595408767000,\"updateId\":null,\"updateTime\":1595408767000,\"examId\":18738036992901120,\"code\":\"202007130001-activity2\",\"prepareSeconds\":10,\"maxDurationSeconds\":90,\"enable\":1,\"openingSeconds\":5,\"startTime\":1594620000000,\"finishTime\":1594634400000},\"202007130001-activity1\":{\"id\":18740006973603840,\"createId\":1,\"createTime\":1595408767000,\"updateId\":null,\"updateTime\":1595408767000,\"examId\":18738036992901120,\"code\":\"202007130001-activity1\",\"prepareSeconds\":10,\"maxDurationSeconds\":90,\"enable\":1,\"openingSeconds\":5,\"startTime\":1594598400000,\"finishTime\":1594612800000}},\"remark\":\"{\\\"path\\\":\\\"file/2020/7/22/33dcc45a438c429c82a51b0caf8d1de3.xlsx\\\",\\\"uploadType\\\":3,\\\"type\\\":\\\"local\\\"}\",\"orgId\":1}', 'TASK_LOG', '18746951033946112', 'sysadmin', 2, NULL, NULL, '2020-07-22 17:33:54', 1595410423095);
+INSERT INTO `t_m_rocket_message` VALUES ('8734ccef322d4aaebde4c39b5c088233', 'themis-topic-userLog', 'user', 'LOGIN', 'USER_LOG', '1', 'sysadmin', 2, NULL, NULL, '2020-07-22 16:58:05', 1595408281791);
+INSERT INTO `t_m_rocket_message` VALUES ('cf5409b700884d62ad8be97bb30f0206', 'themis-topic-session', 'web', '{\"id\":\"1-1591624781-web\",\"identity\":\"1\",\"type\":\"[SUPER_ADMIN]\",\"source\":\"web\",\"platform\":\"web\",\"deviceId\":\"1234567891\",\"address\":\"0:0:0:0:0:0:0:1\",\"accessToken\":\"vW6bxpGQ1f9gUX34uOO4QNThQUJdcqze\",\"lastAccessTime\":1.595408281083E12,\"expireTime\":1.595494681072E12}', 'SESSION', '1-1591624781-web', 'sysadmin', 2, NULL, NULL, '2020-07-22 16:58:05', 1595408281146);
 COMMIT;
 
 -- ----------------------------