Ver Fonte

Merge branch 'dev'
1

wangliang há 4 anos atrás
pai
commit
77f350b2dd
34 ficheiros alterados com 313 adições e 236 exclusões
  1. 1 7
      themis-backend/src/main/java/com/qmth/themis/backend/api/SysController.java
  2. 6 2
      themis-backend/src/main/java/com/qmth/themis/backend/api/TBExamInvigilateUserController.java
  3. 0 3
      themis-backend/src/main/java/com/qmth/themis/backend/api/TBOrgController.java
  4. 2 1
      themis-backend/src/main/java/com/qmth/themis/backend/api/TBUserController.java
  5. 4 4
      themis-backend/src/main/java/com/qmth/themis/backend/api/TEExamReexamController.java
  6. 2 1
      themis-backend/src/main/java/com/qmth/themis/backend/api/TEStudentController.java
  7. 6 6
      themis-backend/src/main/java/com/qmth/themis/backend/api/TIeInvigilateController.java
  8. 3 3
      themis-backend/src/main/java/com/qmth/themis/backend/api/TIeInvigilateWarnInfoController.java
  9. 8 8
      themis-backend/src/main/java/com/qmth/themis/backend/api/TIeReportController.java
  10. 8 3
      themis-business/src/main/java/com/qmth/themis/business/dao/TBExamInvigilateUserMapper.java
  11. 2 2
      themis-business/src/main/java/com/qmth/themis/business/dao/TBUserMapper.java
  12. 11 4
      themis-business/src/main/java/com/qmth/themis/business/dao/TEExamReexamMapper.java
  13. 2 1
      themis-business/src/main/java/com/qmth/themis/business/dao/TEStudentMapper.java
  14. 8 7
      themis-business/src/main/java/com/qmth/themis/business/dao/TIeInvigilateWarnInfoMapper.java
  15. 31 26
      themis-business/src/main/java/com/qmth/themis/business/dao/TOeExamRecordMapper.java
  16. 7 2
      themis-business/src/main/java/com/qmth/themis/business/service/TBExamInvigilateUserService.java
  17. 2 1
      themis-business/src/main/java/com/qmth/themis/business/service/TBUserService.java
  18. 11 4
      themis-business/src/main/java/com/qmth/themis/business/service/TEExamReexamService.java
  19. 14 12
      themis-business/src/main/java/com/qmth/themis/business/service/TEStudentService.java
  20. 3 1
      themis-business/src/main/java/com/qmth/themis/business/service/TIeInvigilateWarnInfoService.java
  21. 25 10
      themis-business/src/main/java/com/qmth/themis/business/service/TOeExamRecordService.java
  22. 9 4
      themis-business/src/main/java/com/qmth/themis/business/service/impl/TBExamInvigilateUserServiceImpl.java
  23. 3 3
      themis-business/src/main/java/com/qmth/themis/business/service/impl/TBUserServiceImpl.java
  24. 12 8
      themis-business/src/main/java/com/qmth/themis/business/service/impl/TEExamReexamServiceImpl.java
  25. 37 38
      themis-business/src/main/java/com/qmth/themis/business/service/impl/TEStudentServiceImpl.java
  26. 3 2
      themis-business/src/main/java/com/qmth/themis/business/service/impl/TIeInvigilateWarnInfoServiceImpl.java
  27. 45 69
      themis-business/src/main/java/com/qmth/themis/business/service/impl/TOeExamRecordServiceImpl.java
  28. 4 2
      themis-business/src/main/java/com/qmth/themis/business/templete/impl/TaskRoomCodeExportTemplete.java
  29. 3 0
      themis-business/src/main/resources/mapper/TBExamInvigilateUserMapper.xml
  30. 3 0
      themis-business/src/main/resources/mapper/TBUserMapper.xml
  31. 13 2
      themis-business/src/main/resources/mapper/TEExamReexamMapper.xml
  32. 3 0
      themis-business/src/main/resources/mapper/TEStudentMapper.xml
  33. 4 0
      themis-business/src/main/resources/mapper/TIeInvigilateWarnInfoMapper.xml
  34. 18 0
      themis-business/src/main/resources/mapper/TOeExamRecordMapper.xml

+ 1 - 7
themis-backend/src/main/java/com/qmth/themis/backend/api/SysController.java

@@ -225,13 +225,7 @@ public class SysController {
         if (Objects.nonNull(enable)) {
         if (Objects.nonNull(enable)) {
             tbOrgQueryWrapper.lambda().eq(TBOrg::getEnable, enable);
             tbOrgQueryWrapper.lambda().eq(TBOrg::getEnable, enable);
         }
         }
-        List<TBOrg> tbOrgList = tbOrgService.list(tbOrgQueryWrapper);
-//        tbOrgList.forEach(s -> {
-//            if (Objects.nonNull(s.getLogo()) && !Objects.equals(s.getLogo(), "")) {
-//                s.setLogo(systemConfig.getProperty("aliyun.oss.url") + File.separator + s.getLogo());
-//            }
-//        });
-        return ResultUtil.ok(tbOrgList);
+        return ResultUtil.ok(tbOrgService.list(tbOrgQueryWrapper));
     }
     }
 
 
     @ApiOperation(value = "角色查询接口")
     @ApiOperation(value = "角色查询接口")

+ 6 - 2
themis-backend/src/main/java/com/qmth/themis/backend/api/TBExamInvigilateUserController.java

@@ -63,7 +63,8 @@ public class TBExamInvigilateUserController {
     @RequestMapping(value = "/query", method = RequestMethod.POST)
     @RequestMapping(value = "/query", method = RequestMethod.POST)
     @ApiResponses({@ApiResponse(code = 200, message = "监考员信息", response = TBExamInvigilateUserDto.class)})
     @ApiResponses({@ApiResponse(code = 200, message = "监考员信息", response = TBExamInvigilateUserDto.class)})
     public Result query(@ApiParam(value = "考试批次id", required = true) @RequestParam(required = false) Long examId, @ApiParam(value = "考场代码", required = false) @RequestParam(required = false) String roomCode, @ApiParam(value = "用户id", required = false) @RequestParam(required = false) Long userId, @ApiParam(value = "分页页码", required = true) @RequestParam int pageNumber, @ApiParam(value = "分页数", required = true) @RequestParam int pageSize) {
     public Result query(@ApiParam(value = "考试批次id", required = true) @RequestParam(required = false) Long examId, @ApiParam(value = "考场代码", required = false) @RequestParam(required = false) String roomCode, @ApiParam(value = "用户id", required = false) @RequestParam(required = false) Long userId, @ApiParam(value = "分页页码", required = true) @RequestParam int pageNumber, @ApiParam(value = "分页数", required = true) @RequestParam int pageSize) {
-        return ResultUtil.ok(tbExamInvigilateUserService.examInvigilateUserQuery(new Page<>(pageNumber, pageSize), examId, roomCode, userId));
+        TBUser tbUser = (TBUser) ServletUtil.getRequestAccount();
+        return ResultUtil.ok(tbExamInvigilateUserService.examInvigilateUserQuery(new Page<>(pageNumber, pageSize), examId, roomCode, userId, tbUser.getOrgId()));
     }
     }
 
 
     @ApiOperation(value = "监考员修改接口")
     @ApiOperation(value = "监考员修改接口")
@@ -177,7 +178,7 @@ public class TBExamInvigilateUserController {
     @RequestMapping(value = "/export", method = RequestMethod.POST)
     @RequestMapping(value = "/export", method = RequestMethod.POST)
     @Transactional
     @Transactional
     @ApiResponses({@ApiResponse(code = 200, message = "{\"taskId\":0}", response = Result.class)})
     @ApiResponses({@ApiResponse(code = 200, message = "{\"taskId\":0}", response = Result.class)})
-    public Result export() {
+    public Result export(@ApiParam(value = "考试批次id", required = true) @RequestParam(required = false) Long examId, @ApiParam(value = "考场代码", required = false) @RequestParam(required = false) String roomCode, @ApiParam(value = "用户id", required = false) @RequestParam(required = false) Long userId) {
         TBTaskHistory tbTaskHistory = null;
         TBTaskHistory tbTaskHistory = null;
         try {
         try {
             int count = tbExamInvigilateUserService.count();
             int count = tbExamInvigilateUserService.count();
@@ -190,6 +191,9 @@ public class TBExamInvigilateUserController {
                 transMap.put("tbTaskHistory", tbTaskHistory);
                 transMap.put("tbTaskHistory", tbTaskHistory);
                 transMap.put("createId", tbUser.getId());
                 transMap.put("createId", tbUser.getId());
                 transMap.put("orgId", tbUser.getOrgId());
                 transMap.put("orgId", tbUser.getOrgId());
+                transMap.put("examId", examId);
+                transMap.put("roomCode", roomCode);
+                transMap.put("userId", userId);
                 //mq发送消息start
                 //mq发送消息start
                 MqDto mqDto = new MqDto(MqTopicEnum.THEMIS_TOPIC.getCode(), MqTagEnum.ROOM_CODE_EXPORT.name(), transMap, MqTagEnum.ROOM_CODE_EXPORT, String.valueOf(tbTaskHistory.getId()), tbUser.getName());
                 MqDto mqDto = new MqDto(MqTopicEnum.THEMIS_TOPIC.getCode(), MqTagEnum.ROOM_CODE_EXPORT.name(), transMap, MqTagEnum.ROOM_CODE_EXPORT, String.valueOf(tbTaskHistory.getId()), tbUser.getName());
                 mqDtoService.assembleSendOneWayMsg(mqDto);
                 mqDtoService.assembleSendOneWayMsg(mqDto);

+ 0 - 3
themis-backend/src/main/java/com/qmth/themis/backend/api/TBOrgController.java

@@ -70,9 +70,6 @@ public class TBOrgController {
         } else {
         } else {
             tbOrg.setUpdateId(tbUser.getId());
             tbOrg.setUpdateId(tbUser.getId());
         }
         }
-//        if (Objects.nonNull(tbOrg.getLogo()) && !Objects.equals(tbOrg.getLogo(), "")) {
-//            tbOrg.setLogo(tbOrg.getLogo().replaceAll(systemConfig.getProperty("aliyun.oss.url") + File.separator, ""));
-//        }
         redisUtil.setOrg(tbOrg.getId(), tbOrg);
         redisUtil.setOrg(tbOrg.getId(), tbOrg);
         EhcacheUtil.put(SystemConstant.orgCodeCache, tbOrg.getCode(), tbOrg);
         EhcacheUtil.put(SystemConstant.orgCodeCache, tbOrg.getCode(), tbOrg);
         tbOrgService.saveOrUpdate(tbOrg);
         tbOrgService.saveOrUpdate(tbOrg);

+ 2 - 1
themis-backend/src/main/java/com/qmth/themis/backend/api/TBUserController.java

@@ -544,7 +544,8 @@ public class TBUserController {
     @RequestMapping(value = "/query", method = RequestMethod.POST)
     @RequestMapping(value = "/query", method = RequestMethod.POST)
     @ApiResponses({@ApiResponse(code = 200, message = "用户信息", response = TBUserDto.class)})
     @ApiResponses({@ApiResponse(code = 200, message = "用户信息", response = TBUserDto.class)})
     public Result query(@ApiParam(value = "用户id", required = false) @RequestParam(required = false) Long id, @ApiParam(value = "登录名", required = false) @RequestParam(required = false) String loginName, @ApiParam(value = "姓名", required = false) @RequestParam(required = false) String name, @ApiParam(value = "角色", required = false) @RequestParam(required = false) String roleCode, @ApiParam(value = "是否启用", required = false) @RequestParam(required = false) Integer enable, @ApiParam(value = "分页页码", required = true) @RequestParam int pageNumber, @ApiParam(value = "分页数", required = true) @RequestParam int pageSize) {
     public Result query(@ApiParam(value = "用户id", required = false) @RequestParam(required = false) Long id, @ApiParam(value = "登录名", required = false) @RequestParam(required = false) String loginName, @ApiParam(value = "姓名", required = false) @RequestParam(required = false) String name, @ApiParam(value = "角色", required = false) @RequestParam(required = false) String roleCode, @ApiParam(value = "是否启用", required = false) @RequestParam(required = false) Integer enable, @ApiParam(value = "分页页码", required = true) @RequestParam int pageNumber, @ApiParam(value = "分页数", required = true) @RequestParam int pageSize) {
-        IPage<TBUserDto> tbUserIPage = tbUserService.userQuery(new Page<>(pageNumber, pageSize), id, loginName, name, roleCode, enable);
+        TBUser tbUser = (TBUser) ServletUtil.getRequestAccount();
+        IPage<TBUserDto> tbUserIPage = tbUserService.userQuery(new Page<>(pageNumber, pageSize), id, loginName, name, roleCode, enable, tbUser.getOrgId());
         tbUserIPage.getRecords().forEach(s -> {
         tbUserIPage.getRecords().forEach(s -> {
             if (Objects.nonNull(s.getRoleNameStr())) {
             if (Objects.nonNull(s.getRoleNameStr())) {
                 s.setRoleName(Arrays.asList(s.getRoleNameStr().split(",")));
                 s.setRoleName(Arrays.asList(s.getRoleNameStr().split(",")));

+ 4 - 4
themis-backend/src/main/java/com/qmth/themis/backend/api/TEExamReexamController.java

@@ -246,7 +246,7 @@ public class TEExamReexamController {
         if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
         if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
             userId = tbUser.getId();
             userId = tbUser.getId();
         }
         }
-        return ResultUtil.ok(teExamReexamService.reexamPageRequestList(new Page<>(pageNumber, pageSize), examId, examActivityId, roomCode, courseCode, name, identity, userId));
+        return ResultUtil.ok(teExamReexamService.reexamPageRequestList(new Page<>(pageNumber, pageSize), examId, examActivityId, roomCode, courseCode, name, identity, userId, tbUser.getOrgId()));
     }
     }
 
 
     @ApiOperation(value = "重考待审列表接口")
     @ApiOperation(value = "重考待审列表接口")
@@ -265,7 +265,7 @@ public class TEExamReexamController {
                               @ApiParam(value = "分页页码", required = true) @RequestParam int pageNumber,
                               @ApiParam(value = "分页页码", required = true) @RequestParam int pageNumber,
                               @ApiParam(value = "分页数", required = true) @RequestParam int pageSize) {
                               @ApiParam(value = "分页数", required = true) @RequestParam int pageSize) {
         TBUser tbUser = (TBUser) ServletUtil.getRequestAccount();
         TBUser tbUser = (TBUser) ServletUtil.getRequestAccount();
-        return ResultUtil.ok(teExamReexamService.reexamPageNotDoneList(new Page<>(pageNumber, pageSize), examId, examActivityId, roomCode, courseCode, name, identity, reason, reasonStartTime, reasonEndTime, applyName, tbUser.getId()));
+        return ResultUtil.ok(teExamReexamService.reexamPageNotDoneList(new Page<>(pageNumber, pageSize), examId, examActivityId, roomCode, courseCode, name, identity, reason, reasonStartTime, reasonEndTime, applyName, tbUser.getId(), tbUser.getOrgId()));
     }
     }
 
 
     @ApiOperation(value = "重考待审提醒接口")
     @ApiOperation(value = "重考待审提醒接口")
@@ -273,7 +273,7 @@ public class TEExamReexamController {
     @ApiResponses({@ApiResponse(code = 200, message = "{\"success\":true}", response = Result.class)})
     @ApiResponses({@ApiResponse(code = 200, message = "{\"success\":true}", response = Result.class)})
     public Result listNotDoneNotify(@ApiParam(value = "考试批次id", required = false) @RequestParam(required = false) Long examId) {
     public Result listNotDoneNotify(@ApiParam(value = "考试批次id", required = false) @RequestParam(required = false) Long examId) {
         TBUser tbUser = (TBUser) ServletUtil.getRequestAccount();
         TBUser tbUser = (TBUser) ServletUtil.getRequestAccount();
-        Integer count = teExamReexamService.reexamPageNotDoneCount(examId, tbUser.getId());
+        Integer count = teExamReexamService.reexamPageNotDoneCount(examId, tbUser.getId(), tbUser.getOrgId());
         return ResultUtil.ok(Collections.singletonMap(SystemConstant.COUNT, count));
         return ResultUtil.ok(Collections.singletonMap(SystemConstant.COUNT, count));
     }
     }
 
 
@@ -293,6 +293,6 @@ public class TEExamReexamController {
                            @ApiParam(value = "分页页码", required = true) @RequestParam int pageNumber,
                            @ApiParam(value = "分页页码", required = true) @RequestParam int pageNumber,
                            @ApiParam(value = "分页数", required = true) @RequestParam int pageSize) {
                            @ApiParam(value = "分页数", required = true) @RequestParam int pageSize) {
         TBUser tbUser = (TBUser) ServletUtil.getRequestAccount();
         TBUser tbUser = (TBUser) ServletUtil.getRequestAccount();
-        return ResultUtil.ok(teExamReexamService.reexamPageDoneList(new Page<>(pageNumber, pageSize), examId, examActivityId, roomCode, courseCode, name, identity, auditingStatus, reasonStartTime, reasonEndTime, applyName, tbUser.getId()));
+        return ResultUtil.ok(teExamReexamService.reexamPageDoneList(new Page<>(pageNumber, pageSize), examId, examActivityId, roomCode, courseCode, name, identity, auditingStatus, reasonStartTime, reasonEndTime, applyName, tbUser.getId(), tbUser.getOrgId()));
     }
     }
 }
 }

+ 2 - 1
themis-backend/src/main/java/com/qmth/themis/backend/api/TEStudentController.java

@@ -55,7 +55,8 @@ public class TEStudentController {
     @RequestMapping(value = "/query", method = RequestMethod.POST)
     @RequestMapping(value = "/query", method = RequestMethod.POST)
     @ApiResponses({@ApiResponse(code = 200, message = "考生信息", response = TEStudentDto.class)})
     @ApiResponses({@ApiResponse(code = 200, message = "考生信息", response = TEStudentDto.class)})
     public Result query(@ApiParam(value = "证件号", required = false) @RequestParam(required = false) String identity, @ApiParam(value = "姓名", required = false) @RequestParam(required = false) String name, @ApiParam(value = "是否启用", required = false) @RequestParam(required = false) Integer enable, @ApiParam(value = "分页页码", required = true) @RequestParam int pageNumber, @ApiParam(value = "分页数", required = true) @RequestParam int pageSize) {
     public Result query(@ApiParam(value = "证件号", required = false) @RequestParam(required = false) String identity, @ApiParam(value = "姓名", required = false) @RequestParam(required = false) String name, @ApiParam(value = "是否启用", required = false) @RequestParam(required = false) Integer enable, @ApiParam(value = "分页页码", required = true) @RequestParam int pageNumber, @ApiParam(value = "分页数", required = true) @RequestParam int pageSize) {
-        IPage<TEStudentDto> teExamStudentIPage = teStudentService.studentQuery(new Page<>(pageNumber, pageSize), identity, name, enable);
+        TBUser tbUser = (TBUser) ServletUtil.getRequestAccount();
+        IPage<TEStudentDto> teExamStudentIPage = teStudentService.studentQuery(new Page<>(pageNumber, pageSize), identity, name, enable, tbUser.getOrgId());
         if (teExamStudentIPage.getRecords() != null && teExamStudentIPage.getRecords().size() > 0) {
         if (teExamStudentIPage.getRecords() != null && teExamStudentIPage.getRecords().size() > 0) {
             for (TEStudentDto dto : teExamStudentIPage.getRecords()) {
             for (TEStudentDto dto : teExamStudentIPage.getRecords()) {
                 if (StringUtils.isNotBlank(dto.getBasePhotoPath())) {
                 if (StringUtils.isNotBlank(dto.getBasePhotoPath())) {

+ 6 - 6
themis-backend/src/main/java/com/qmth/themis/backend/api/TIeInvigilateController.java

@@ -119,7 +119,7 @@ public class TIeInvigilateController {
         if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
         if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
             userId = tbUser.getId();
             userId = tbUser.getId();
         }
         }
-        IPage<InvigilateListVideoBean> invigilateListVideoBeanIPage = tOeExamRecordService.invigilatePageListVideo(new Page<>(pageNumber, pageSize), examId, examActivityId, roomCode, paperDownload, status, name, identity, minWarningCount, maxWarningCount, clientWebsocketStatus, userId);
+        IPage<InvigilateListVideoBean> invigilateListVideoBeanIPage = tOeExamRecordService.invigilatePageListVideo(new Page<>(pageNumber, pageSize), examId, examActivityId, roomCode, paperDownload, status, name, identity, minWarningCount, maxWarningCount, clientWebsocketStatus, userId, tbUser.getOrgId());
         if (Objects.nonNull(invigilateListVideoBeanIPage)) {
         if (Objects.nonNull(invigilateListVideoBeanIPage)) {
             List<InvigilateListVideoBean> invigilateListVideoBeanList = invigilateListVideoBeanIPage.getRecords();
             List<InvigilateListVideoBean> invigilateListVideoBeanList = invigilateListVideoBeanIPage.getRecords();
             ExamCacheBean examCacheBean = teExamService.getExamCacheBean(examId);
             ExamCacheBean examCacheBean = teExamService.getExamCacheBean(examId);
@@ -185,7 +185,7 @@ public class TIeInvigilateController {
         if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
         if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
             userId = tbUser.getId();
             userId = tbUser.getId();
         }
         }
-        List<InvigilateListVideoBean> invigilateListVideoBeanList = tOeExamRecordService.invigilatePageListVideoRandom(examId, userId, randomNum);
+        List<InvigilateListVideoBean> invigilateListVideoBeanList = tOeExamRecordService.invigilatePageListVideoRandom(examId, userId, randomNum, tbUser.getOrgId());
         if (Objects.nonNull(invigilateListVideoBeanList) && invigilateListVideoBeanList.size() > 0) {
         if (Objects.nonNull(invigilateListVideoBeanList) && invigilateListVideoBeanList.size() > 0) {
             invigilateListVideoBeanList.forEach(s -> {
             invigilateListVideoBeanList.forEach(s -> {
                 String monitorLiveUrl = ExamRecordCacheUtil.getMonitorLiveUrl(s.getExamRecordId(), MonitorVideoSourceEnum.CLIENT_CAMERA.name());
                 String monitorLiveUrl = ExamRecordCacheUtil.getMonitorLiveUrl(s.getExamRecordId(), MonitorVideoSourceEnum.CLIENT_CAMERA.name());
@@ -232,7 +232,7 @@ public class TIeInvigilateController {
         if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
         if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
             userId = tbUser.getId();
             userId = tbUser.getId();
         }
         }
-        return ResultUtil.ok(tOeExamRecordService.invigilatePageListHistory(new Page<>(pageNumber, pageSize), examId, examActivityId, roomCode, courseCode, status, breachStatus, finishType, name, identity, minMultipleFaceCount, maxMultipleFaceCount, minExceptionCount, maxExceptionCount, minWarningCount, maxWarningCount, userId));
+        return ResultUtil.ok(tOeExamRecordService.invigilatePageListHistory(new Page<>(pageNumber, pageSize), examId, examActivityId, roomCode, courseCode, status, breachStatus, finishType, name, identity, minMultipleFaceCount, maxMultipleFaceCount, minExceptionCount, maxExceptionCount, minWarningCount, maxWarningCount, userId, tbUser.getOrgId()));
     }
     }
 
 
     @ApiOperation(value = "实时监控台列表明细接口")
     @ApiOperation(value = "实时监控台列表明细接口")
@@ -378,7 +378,7 @@ public class TIeInvigilateController {
         if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
         if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
             userId = tbUser.getId();
             userId = tbUser.getId();
         }
         }
-        IPage<InvigilateListPatrolBean> invigilateListPatrolBeanIPage = tOeExamRecordService.invigilatePagePatrolList(new Page<>(pageNumber, pageSize), examId, examActivityId, roomCode, status, name, identity, minMultipleFaceCount, maxMultipleFaceCount, minExceptionCount, maxExceptionCount, minWarningCount, maxWarningCount, clientWebsocketStatus, userId);
+        IPage<InvigilateListPatrolBean> invigilateListPatrolBeanIPage = tOeExamRecordService.invigilatePagePatrolList(new Page<>(pageNumber, pageSize), examId, examActivityId, roomCode, status, name, identity, minMultipleFaceCount, maxMultipleFaceCount, minExceptionCount, maxExceptionCount, minWarningCount, maxWarningCount, clientWebsocketStatus, userId, tbUser.getOrgId());
         if (Objects.nonNull(invigilateListPatrolBeanIPage)) {
         if (Objects.nonNull(invigilateListPatrolBeanIPage)) {
             List<InvigilateListPatrolBean> invigilateListPatrolBeanList = invigilateListPatrolBeanIPage.getRecords();
             List<InvigilateListPatrolBean> invigilateListPatrolBeanList = invigilateListPatrolBeanIPage.getRecords();
             if (Objects.nonNull(invigilateListPatrolBeanList) && invigilateListPatrolBeanList.size() > 0) {
             if (Objects.nonNull(invigilateListPatrolBeanList) && invigilateListPatrolBeanList.size() > 0) {
@@ -411,7 +411,7 @@ public class TIeInvigilateController {
         if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
         if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
             userId = tbUser.getId();
             userId = tbUser.getId();
         }
         }
-        return ResultUtil.ok(tOeExamRecordService.invigilatePageProgressList(new Page<>(pageNumber, pageSize), examId, examActivityId, roomCode, courseCode, name, identity, userId));
+        return ResultUtil.ok(tOeExamRecordService.invigilatePageProgressList(new Page<>(pageNumber, pageSize), examId, examActivityId, roomCode, courseCode, name, identity, userId, tbUser.getOrgId()));
     }
     }
 
 
     @ApiOperation(value = "进度查询列表导出接口")
     @ApiOperation(value = "进度查询列表导出接口")
@@ -430,7 +430,7 @@ public class TIeInvigilateController {
         if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
         if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
             userId = tbUser.getId();
             userId = tbUser.getId();
         }
         }
-        List<InvigilateListProgressExcelBean> invigilateListProgressExcelBeanList = tOeExamRecordService.invigilatePageProgressListExport(examId, examActivityId, roomCode, courseCode, name, identity, userId);
+        List<InvigilateListProgressExcelBean> invigilateListProgressExcelBeanList = tOeExamRecordService.invigilatePageProgressListExport(examId, examActivityId, roomCode, courseCode, name, identity, userId, tbUser.getOrgId());
         ExportUtils.exportEXCEL("进度信息", InvigilateListProgressExcelBean.class, invigilateListProgressExcelBeanList, ServletUtil.getResponse());
         ExportUtils.exportEXCEL("进度信息", InvigilateListProgressExcelBean.class, invigilateListProgressExcelBeanList, ServletUtil.getResponse());
     }
     }
 
 

+ 3 - 3
themis-backend/src/main/java/com/qmth/themis/backend/api/TIeInvigilateWarnInfoController.java

@@ -59,7 +59,7 @@ public class TIeInvigilateWarnInfoController {
         if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
         if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
             userId = tbUser.getId();
             userId = tbUser.getId();
         }
         }
-        Integer count = tIeInvigilateWarnInfoService.warningCount(examId, examActivityId, roomCode, userId);
+        Integer count = tIeInvigilateWarnInfoService.warningCount(examId, examActivityId, roomCode, userId, tbUser.getOrgId());
         return ResultUtil.ok(Collections.singletonMap(SystemConstant.COUNT, count));
         return ResultUtil.ok(Collections.singletonMap(SystemConstant.COUNT, count));
     }
     }
 
 
@@ -87,7 +87,7 @@ public class TIeInvigilateWarnInfoController {
         if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
         if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
             userId = tbUser.getId();
             userId = tbUser.getId();
         }
         }
-        return ResultUtil.ok(tOeExamRecordService.invigilatePageWarningList(new Page<>(pageNumber, pageSize), examId, examActivityId, roomCode, approveStatus, name, identity, minMultipleFaceCount, maxMultipleFaceCount, minExceptionCount, maxExceptionCount, minWarningCount, maxWarningCount, userId));
+        return ResultUtil.ok(tOeExamRecordService.invigilatePageWarningList(new Page<>(pageNumber, pageSize), examId, examActivityId, roomCode, approveStatus, name, identity, minMultipleFaceCount, maxMultipleFaceCount, minExceptionCount, maxExceptionCount, minWarningCount, maxWarningCount, userId, tbUser.getOrgId()));
     }
     }
 
 
     @ApiOperation(value = "预警消息接口")
     @ApiOperation(value = "预警消息接口")
@@ -155,7 +155,7 @@ public class TIeInvigilateWarnInfoController {
         if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
         if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
             userId = tbUser.getId();
             userId = tbUser.getId();
         }
         }
-        tOeExamRecordService.approveStatusListUpdate(examId, examActivityId, roomCode, approveStatus, name, identity, minMultipleFaceCount, maxMultipleFaceCount, minExceptionCount, maxExceptionCount, minWarningCount, maxWarningCount, userId);
+        tOeExamRecordService.approveStatusListUpdate(examId, examActivityId, roomCode, approveStatus, name, identity, minMultipleFaceCount, maxMultipleFaceCount, minExceptionCount, maxExceptionCount, minWarningCount, maxWarningCount, userId, tbUser.getOrgId());
         return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
         return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
     }
 }
 }

+ 8 - 8
themis-backend/src/main/java/com/qmth/themis/backend/api/TIeReportController.java

@@ -34,7 +34,7 @@ public class TIeReportController {
     @ApiOperation(value = "考试概览")
     @ApiOperation(value = "考试概览")
     @RequestMapping(value = "/exam_view", method = RequestMethod.POST)
     @RequestMapping(value = "/exam_view", method = RequestMethod.POST)
     @ApiResponses({@ApiResponse(code = 200, message = "结果信息")})
     @ApiResponses({@ApiResponse(code = 200, message = "结果信息")})
-    public Result examView(@ApiParam(value = "考试id", required = true) @RequestParam Long examId,
+    public Result examView(@ApiParam(value = "考试id", required = false) @RequestParam(required = false) Long examId,
                            @ApiParam(value = "考场场次id", required = false) @RequestParam(required = false) Long examActivityId,
                            @ApiParam(value = "考场场次id", required = false) @RequestParam(required = false) Long examActivityId,
                            @ApiParam(value = "虚拟考场代码", required = false) @RequestParam(required = false) String roomCode,
                            @ApiParam(value = "虚拟考场代码", required = false) @RequestParam(required = false) String roomCode,
                            @ApiParam(value = "科目编码", required = false) @RequestParam(required = false) String courseCode,
                            @ApiParam(value = "科目编码", required = false) @RequestParam(required = false) String courseCode,
@@ -46,7 +46,7 @@ public class TIeReportController {
     @ApiOperation(value = "情况统计")
     @ApiOperation(value = "情况统计")
     @RequestMapping(value = "/exam_view_count", method = RequestMethod.POST)
     @RequestMapping(value = "/exam_view_count", method = RequestMethod.POST)
     @ApiResponses({@ApiResponse(code = 200, message = "结果信息")})
     @ApiResponses({@ApiResponse(code = 200, message = "结果信息")})
-    public Result examViewCount(@ApiParam(value = "考试id", required = true) @RequestParam Long examId,
+    public Result examViewCount(@ApiParam(value = "考试id", required = false) @RequestParam(required = false) Long examId,
                                 @ApiParam(value = "考场场次id", required = false) @RequestParam(required = false) Long examActivityId,
                                 @ApiParam(value = "考场场次id", required = false) @RequestParam(required = false) Long examActivityId,
                                 @ApiParam(value = "虚拟考场代码", required = false) @RequestParam(required = false) String roomCode,
                                 @ApiParam(value = "虚拟考场代码", required = false) @RequestParam(required = false) String roomCode,
                                 @ApiParam(value = "科目编码", required = false) @RequestParam(required = false) String courseCode,
                                 @ApiParam(value = "科目编码", required = false) @RequestParam(required = false) String courseCode,
@@ -60,7 +60,7 @@ public class TIeReportController {
     @ApiOperation(value = "缺考名单")
     @ApiOperation(value = "缺考名单")
     @RequestMapping(value = "/exam_deficiency_list", method = RequestMethod.POST)
     @RequestMapping(value = "/exam_deficiency_list", method = RequestMethod.POST)
     @ApiResponses({@ApiResponse(code = 200, message = "结果信息")})
     @ApiResponses({@ApiResponse(code = 200, message = "结果信息")})
-    public Result examDeficiencyList(@ApiParam(value = "考试id", required = true) @RequestParam Long examId,
+    public Result examDeficiencyList(@ApiParam(value = "考试id", required = false) @RequestParam(required = false) Long examId,
                                      @ApiParam(value = "考场场次id", required = false) @RequestParam(required = false) Long examActivityId,
                                      @ApiParam(value = "考场场次id", required = false) @RequestParam(required = false) Long examActivityId,
                                      @ApiParam(value = "虚拟考场代码", required = false) @RequestParam(required = false) String roomCode,
                                      @ApiParam(value = "虚拟考场代码", required = false) @RequestParam(required = false) String roomCode,
                                      @ApiParam(value = "科目编码", required = false) @RequestParam(required = false) String courseCode,
                                      @ApiParam(value = "科目编码", required = false) @RequestParam(required = false) String courseCode,
@@ -74,7 +74,7 @@ public class TIeReportController {
     @ApiOperation(value = "异常处理")
     @ApiOperation(value = "异常处理")
     @RequestMapping(value = "/exam_exception_list", method = RequestMethod.POST)
     @RequestMapping(value = "/exam_exception_list", method = RequestMethod.POST)
     @ApiResponses({@ApiResponse(code = 200, message = "结果信息")})
     @ApiResponses({@ApiResponse(code = 200, message = "结果信息")})
-    public Result examExceptionList(@ApiParam(value = "考试id", required = true) @RequestParam Long examId,
+    public Result examExceptionList(@ApiParam(value = "考试id", required = false) @RequestParam(required = false) Long examId,
                                     @ApiParam(value = "考场场次id", required = false) @RequestParam(required = false) Long examActivityId,
                                     @ApiParam(value = "考场场次id", required = false) @RequestParam(required = false) Long examActivityId,
                                     @ApiParam(value = "虚拟考场代码", required = false) @RequestParam(required = false) String roomCode,
                                     @ApiParam(value = "虚拟考场代码", required = false) @RequestParam(required = false) String roomCode,
                                     @ApiParam(value = "科目编码", required = false) @RequestParam(required = false) String courseCode,
                                     @ApiParam(value = "科目编码", required = false) @RequestParam(required = false) String courseCode,
@@ -96,7 +96,7 @@ public class TIeReportController {
     @ApiOperation(value = "重考处理")
     @ApiOperation(value = "重考处理")
     @RequestMapping(value = "/exam_reexam_list", method = RequestMethod.POST)
     @RequestMapping(value = "/exam_reexam_list", method = RequestMethod.POST)
     @ApiResponses({@ApiResponse(code = 200, message = "结果信息")})
     @ApiResponses({@ApiResponse(code = 200, message = "结果信息")})
-    public Result examReexamList(@ApiParam(value = "考试id", required = true) @RequestParam Long examId,
+    public Result examReexamList(@ApiParam(value = "考试id", required = false) @RequestParam(required = false) Long examId,
                                  @ApiParam(value = "考场场次id", required = false) @RequestParam(required = false) Long examActivityId,
                                  @ApiParam(value = "考场场次id", required = false) @RequestParam(required = false) Long examActivityId,
                                  @ApiParam(value = "虚拟考场代码", required = false) @RequestParam(required = false) String roomCode,
                                  @ApiParam(value = "虚拟考场代码", required = false) @RequestParam(required = false) String roomCode,
                                  @ApiParam(value = "科目编码", required = false) @RequestParam(required = false) String courseCode,
                                  @ApiParam(value = "科目编码", required = false) @RequestParam(required = false) String courseCode,
@@ -110,7 +110,7 @@ public class TIeReportController {
     @ApiOperation(value = "违纪名单")
     @ApiOperation(value = "违纪名单")
     @RequestMapping(value = "/exam_breach_list", method = RequestMethod.POST)
     @RequestMapping(value = "/exam_breach_list", method = RequestMethod.POST)
     @ApiResponses({@ApiResponse(code = 200, message = "结果信息")})
     @ApiResponses({@ApiResponse(code = 200, message = "结果信息")})
-    public Result examBreachList(@ApiParam(value = "考试id", required = true) @RequestParam Long examId,
+    public Result examBreachList(@ApiParam(value = "考试id", required = false) @RequestParam(required = false) Long examId,
                                  @ApiParam(value = "考场场次id", required = false) @RequestParam(required = false) Long examActivityId,
                                  @ApiParam(value = "考场场次id", required = false) @RequestParam(required = false) Long examActivityId,
                                  @ApiParam(value = "虚拟考场代码", required = false) @RequestParam(required = false) String roomCode,
                                  @ApiParam(value = "虚拟考场代码", required = false) @RequestParam(required = false) String roomCode,
                                  @ApiParam(value = "科目编码", required = false) @RequestParam(required = false) String courseCode,
                                  @ApiParam(value = "科目编码", required = false) @RequestParam(required = false) String courseCode,
@@ -132,7 +132,7 @@ public class TIeReportController {
     @ApiOperation(value = "撤销违纪名单")
     @ApiOperation(value = "撤销违纪名单")
     @RequestMapping(value = "/exam_revoke_breach_list", method = RequestMethod.POST)
     @RequestMapping(value = "/exam_revoke_breach_list", method = RequestMethod.POST)
     @ApiResponses({@ApiResponse(code = 200, message = "结果信息")})
     @ApiResponses({@ApiResponse(code = 200, message = "结果信息")})
-    public Result examRevokeBreachList(@ApiParam(value = "考试id", required = true) @RequestParam Long examId,
+    public Result examRevokeBreachList(@ApiParam(value = "考试id", required = false) @RequestParam(required = false) Long examId,
                                        @ApiParam(value = "考场场次id", required = false) @RequestParam(required = false) Long examActivityId,
                                        @ApiParam(value = "考场场次id", required = false) @RequestParam(required = false) Long examActivityId,
                                        @ApiParam(value = "虚拟考场代码", required = false) @RequestParam(required = false) String roomCode,
                                        @ApiParam(value = "虚拟考场代码", required = false) @RequestParam(required = false) String roomCode,
                                        @ApiParam(value = "科目编码", required = false) @RequestParam(required = false) String courseCode,
                                        @ApiParam(value = "科目编码", required = false) @RequestParam(required = false) String courseCode,
@@ -154,7 +154,7 @@ public class TIeReportController {
     @ApiOperation(value = "考生日志")
     @ApiOperation(value = "考生日志")
     @RequestMapping(value = "/exam_student_log_list", method = RequestMethod.POST)
     @RequestMapping(value = "/exam_student_log_list", method = RequestMethod.POST)
     @ApiResponses({@ApiResponse(code = 200, message = "结果信息")})
     @ApiResponses({@ApiResponse(code = 200, message = "结果信息")})
-    public Result examStudentLogList(@ApiParam(value = "考试id", required = true) @RequestParam Long examId,
+    public Result examStudentLogList(@ApiParam(value = "考试id", required = false) @RequestParam(required = false) Long examId,
                                      @ApiParam(value = "考场场次id", required = false) @RequestParam(required = false) Long examActivityId,
                                      @ApiParam(value = "考场场次id", required = false) @RequestParam(required = false) Long examActivityId,
                                      @ApiParam(value = "虚拟考场代码", required = false) @RequestParam(required = false) String roomCode,
                                      @ApiParam(value = "虚拟考场代码", required = false) @RequestParam(required = false) String roomCode,
                                      @ApiParam(value = "科目编码", required = false) @RequestParam(required = false) String courseCode,
                                      @ApiParam(value = "科目编码", required = false) @RequestParam(required = false) String courseCode,

+ 8 - 3
themis-business/src/main/java/com/qmth/themis/business/dao/TBExamInvigilateUserMapper.java

@@ -28,16 +28,21 @@ public interface TBExamInvigilateUserMapper extends BaseMapper<TBExamInvigilateU
      * @param examId
      * @param examId
      * @param roomCode
      * @param roomCode
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
-    public IPage<TBExamInvigilateUserDto> examInvigilateUserQuery(IPage<Map> iPage, @Param("examId") Long examId, @Param("roomCode") String roomCode, @Param("userId") Long userId);
+    public IPage<TBExamInvigilateUserDto> examInvigilateUserQuery(IPage<Map> iPage, @Param("examId") Long examId, @Param("roomCode") String roomCode, @Param("userId") Long userId, @Param("orgId") Long orgId);
 
 
     /**
     /**
      * 监考员导出
      * 监考员导出
      *
      *
+     * @param examId
+     * @param roomCode
+     * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
-    public List<RoomCodeExportDto> examInvigilateUserExport();
+    public List<RoomCodeExportDto> examInvigilateUserExport(@Param("examId") Long examId, @Param("roomCode") String roomCode, @Param("userId") Long userId, @Param("orgId") Long orgId);
 
 
-	public List<Map<String, String>> getInvigilateUsers(@Param("examId") Long examId, @Param("roomCode") String roomCode);
+    public List<Map<String, String>> getInvigilateUsers(@Param("examId") Long examId, @Param("roomCode") String roomCode);
 }
 }

+ 2 - 2
themis-business/src/main/java/com/qmth/themis/business/dao/TBUserMapper.java

@@ -7,7 +7,6 @@ import com.qmth.themis.business.entity.TBUser;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
 import org.apache.ibatis.annotations.Param;
 
 
-import java.util.List;
 import java.util.Map;
 import java.util.Map;
 
 
 /**
 /**
@@ -29,7 +28,8 @@ public interface TBUserMapper extends BaseMapper<TBUser> {
      * @param name
      * @param name
      * @param role
      * @param role
      * @param enable
      * @param enable
+     * @param orgId
      * @return
      * @return
      */
      */
-    IPage<TBUserDto> userQuery(IPage<Map> iPage, @Param("id") Long id, @Param("loginName") String loginName, @Param("name") String name, @Param("role") String role, @Param("enable") Integer enable);
+    IPage<TBUserDto> userQuery(IPage<Map> iPage, @Param("id") Long id, @Param("loginName") String loginName, @Param("name") String name, @Param("role") String role, @Param("enable") Integer enable, @Param("orgId") Long orgId);
 }
 }

+ 11 - 4
themis-business/src/main/java/com/qmth/themis/business/dao/TEExamReexamMapper.java

@@ -33,6 +33,7 @@ public interface TEExamReexamMapper extends BaseMapper<TEExamReexam> {
      * @param name
      * @param name
      * @param identity
      * @param identity
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public IPage<ReexamListRequestBean> reexamPageRequestList(IPage<Map> iPage, @Param("examId") Long examId,
     public IPage<ReexamListRequestBean> reexamPageRequestList(IPage<Map> iPage, @Param("examId") Long examId,
@@ -41,7 +42,8 @@ public interface TEExamReexamMapper extends BaseMapper<TEExamReexam> {
                                                               @Param("courseCode") String courseCode,
                                                               @Param("courseCode") String courseCode,
                                                               @Param("name") String name,
                                                               @Param("name") String name,
                                                               @Param("identity") String identity,
                                                               @Param("identity") String identity,
-                                                              @Param("userId") Long userId);
+                                                              @Param("userId") Long userId,
+                                                              @Param("orgId") Long orgId);
 
 
     /**
     /**
      * 重考待审列表
      * 重考待审列表
@@ -58,6 +60,7 @@ public interface TEExamReexamMapper extends BaseMapper<TEExamReexam> {
      * @param reasonEndTime
      * @param reasonEndTime
      * @param applyName
      * @param applyName
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public IPage<ReexamListNotDoneBean> reexamPageNotDoneList(IPage<Map> iPage, @Param("examId") Long examId,
     public IPage<ReexamListNotDoneBean> reexamPageNotDoneList(IPage<Map> iPage, @Param("examId") Long examId,
@@ -70,16 +73,18 @@ public interface TEExamReexamMapper extends BaseMapper<TEExamReexam> {
                                                               @Param("reasonStartTime") Long reasonStartTime,
                                                               @Param("reasonStartTime") Long reasonStartTime,
                                                               @Param("reasonEndTime") Long reasonEndTime,
                                                               @Param("reasonEndTime") Long reasonEndTime,
                                                               @Param("applyName") String applyName,
                                                               @Param("applyName") String applyName,
-                                                              @Param("userId") Long userId);
+                                                              @Param("userId") Long userId,
+                                                              @Param("orgId") Long orgId);
 
 
     /**
     /**
      * 重考待审提醒
      * 重考待审提醒
      *
      *
      * @param examId
      * @param examId
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
-    public Integer reexamPageNotDoneCount(@Param("examId") Long examId, @Param("userId") Long userId);
+    public Integer reexamPageNotDoneCount(@Param("examId") Long examId, @Param("userId") Long userId, @Param("orgId") Long orgId);
 
 
     /**
     /**
      * 重考已审列表
      * 重考已审列表
@@ -96,6 +101,7 @@ public interface TEExamReexamMapper extends BaseMapper<TEExamReexam> {
      * @param reasonEndTime
      * @param reasonEndTime
      * @param applyName
      * @param applyName
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public IPage<ReexamListDoneBean> reexamPageDoneList(IPage<Map> iPage, @Param("examId") Long examId,
     public IPage<ReexamListDoneBean> reexamPageDoneList(IPage<Map> iPage, @Param("examId") Long examId,
@@ -108,7 +114,8 @@ public interface TEExamReexamMapper extends BaseMapper<TEExamReexam> {
                                                         @Param("reasonStartTime") Long reasonStartTime,
                                                         @Param("reasonStartTime") Long reasonStartTime,
                                                         @Param("reasonEndTime") Long reasonEndTime,
                                                         @Param("reasonEndTime") Long reasonEndTime,
                                                         @Param("applyName") String applyName,
                                                         @Param("applyName") String applyName,
-                                                        @Param("userId") Long userId);
+                                                        @Param("userId") Long userId,
+                                                        @Param("orgId") Long orgId);
 
 
     public IPage<ExamReexamListBean> getExamReexamPage(IPage<ExamReexamListBean> iPage, @Param("examId") Long examId,
     public IPage<ExamReexamListBean> getExamReexamPage(IPage<ExamReexamListBean> iPage, @Param("examId") Long examId,
                                                        @Param("activityId") Long activityId, @Param("roomCode") String roomCode,
                                                        @Param("activityId") Long activityId, @Param("roomCode") String roomCode,

+ 2 - 1
themis-business/src/main/java/com/qmth/themis/business/dao/TEStudentMapper.java

@@ -27,9 +27,10 @@ public interface TEStudentMapper extends BaseMapper<TEStudent> {
      * @param identity
      * @param identity
      * @param name
      * @param name
      * @param enable
      * @param enable
+     * @param orgId
      * @return
      * @return
      */
      */
-    public IPage<TEStudentDto> studentQuery(IPage<Map> iPage, @Param("identity") String identity, @Param("name") String name, @Param("enable") Integer enable);
+    public IPage<TEStudentDto> studentQuery(IPage<Map> iPage, @Param("identity") String identity, @Param("name") String name, @Param("enable") Integer enable, @Param("orgId") Long orgId);
 
 
     /**
     /**
      * 学生考试记录查询
      * 学生考试记录查询

+ 8 - 7
themis-business/src/main/java/com/qmth/themis/business/dao/TIeInvigilateWarnInfoMapper.java

@@ -1,14 +1,13 @@
 package com.qmth.themis.business.dao;
 package com.qmth.themis.business.dao;
 
 
-import java.util.List;
-
-import org.apache.ibatis.annotations.Mapper;
-import org.apache.ibatis.annotations.Param;
-
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.qmth.themis.business.bean.backend.WarningNotifyBean;
 import com.qmth.themis.business.bean.backend.WarningNotifyBean;
 import com.qmth.themis.business.dto.response.TIeWarningNotifyDto;
 import com.qmth.themis.business.dto.response.TIeWarningNotifyDto;
 import com.qmth.themis.business.entity.TIeInvigilateWarnInfo;
 import com.qmth.themis.business.entity.TIeInvigilateWarnInfo;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
 
 
 /**
 /**
  * @Description: 监考预警信息 Mapper 接口
  * @Description: 监考预警信息 Mapper 接口
@@ -27,12 +26,14 @@ public interface TIeInvigilateWarnInfoMapper extends BaseMapper<TIeInvigilateWar
      * @param examActivityId
      * @param examActivityId
      * @param roomCode
      * @param roomCode
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public Integer warningCount(@Param("examId") Long examId,
     public Integer warningCount(@Param("examId") Long examId,
                                 @Param("examActivityId") Long examActivityId,
                                 @Param("examActivityId") Long examActivityId,
                                 @Param("roomCode") String roomCode,
                                 @Param("roomCode") String roomCode,
-                                @Param("userId") Long userId);
+                                @Param("userId") Long userId,
+                                @Param("orgId") Long orgId);
 
 
     /**
     /**
      * 预警通知
      * 预警通知
@@ -44,5 +45,5 @@ public interface TIeInvigilateWarnInfoMapper extends BaseMapper<TIeInvigilateWar
      */
      */
     public List<TIeWarningNotifyDto> warningMessage(@Param("examId") Long examId, @Param("userId") Long userId, @Param("orgId") Long orgId);
     public List<TIeWarningNotifyDto> warningMessage(@Param("examId") Long examId, @Param("userId") Long userId, @Param("orgId") Long orgId);
 
 
-	public List<WarningNotifyBean> findLastMsg(@Param("conut")Integer conut);
+    public List<WarningNotifyBean> findLastMsg(@Param("conut") Integer conut);
 }
 }

+ 31 - 26
themis-business/src/main/java/com/qmth/themis/business/dao/TOeExamRecordMapper.java

@@ -1,25 +1,15 @@
 package com.qmth.themis.business.dao;
 package com.qmth.themis.business.dao;
 
 
-import java.util.List;
-import java.util.Map;
-
-import org.apache.ibatis.annotations.Mapper;
-import org.apache.ibatis.annotations.Param;
-
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.core.metadata.IPage;
-import com.qmth.themis.business.bean.backend.ExaminationMonitorHourWarnCountBean;
-import com.qmth.themis.business.bean.backend.InvigilateListBean;
-import com.qmth.themis.business.bean.backend.InvigilateListHistoryBean;
-import com.qmth.themis.business.bean.backend.InvigilateListPatrolBean;
-import com.qmth.themis.business.bean.backend.InvigilateListPatrolReportBean;
-import com.qmth.themis.business.bean.backend.InvigilateListProgressBean;
-import com.qmth.themis.business.bean.backend.InvigilateListProgressExcelBean;
-import com.qmth.themis.business.bean.backend.InvigilateListVideoBean;
-import com.qmth.themis.business.bean.backend.InvigilateListWarningBean;
-import com.qmth.themis.business.bean.backend.OpenRecordNeedMarkBean;
+import com.qmth.themis.business.bean.backend.*;
 import com.qmth.themis.business.dto.response.TEExamUnFinishDto;
 import com.qmth.themis.business.dto.response.TEExamUnFinishDto;
 import com.qmth.themis.business.entity.TOeExamRecord;
 import com.qmth.themis.business.entity.TOeExamRecord;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+import java.util.Map;
 
 
 /**
 /**
  * @Description: 考试记录 Mapper 接口
  * @Description: 考试记录 Mapper 接口
@@ -96,6 +86,7 @@ public interface TOeExamRecordMapper extends BaseMapper<TOeExamRecord> {
      * @param maxWarningCount
      * @param maxWarningCount
      * @param clientWebsocketStatus
      * @param clientWebsocketStatus
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public IPage<InvigilateListVideoBean> invigilatePageListVideo(IPage<Map> iPage, @Param("examId") Long examId,
     public IPage<InvigilateListVideoBean> invigilatePageListVideo(IPage<Map> iPage, @Param("examId") Long examId,
@@ -108,7 +99,8 @@ public interface TOeExamRecordMapper extends BaseMapper<TOeExamRecord> {
                                                                   @Param("minWarningCount") Integer minWarningCount,
                                                                   @Param("minWarningCount") Integer minWarningCount,
                                                                   @Param("maxWarningCount") Integer maxWarningCount,
                                                                   @Param("maxWarningCount") Integer maxWarningCount,
                                                                   @Param("clientWebsocketStatus") String clientWebsocketStatus,
                                                                   @Param("clientWebsocketStatus") String clientWebsocketStatus,
-                                                                  @Param("userId") Long userId);
+                                                                  @Param("userId") Long userId,
+                                                                  @Param("orgId") Long orgId);
 
 
     /**
     /**
      * 实时监控台视频随机列表
      * 实时监控台视频随机列表
@@ -116,9 +108,10 @@ public interface TOeExamRecordMapper extends BaseMapper<TOeExamRecord> {
      * @param examId
      * @param examId
      * @param userId
      * @param userId
      * @param randomNum
      * @param randomNum
+     * @param orgId
      * @return
      * @return
      */
      */
-    public List<InvigilateListVideoBean> invigilatePageListVideoRandom(@Param("examId") Long examId, @Param("userId") Long userId, @Param("randomNum") Integer randomNum);
+    public List<InvigilateListVideoBean> invigilatePageListVideoRandom(@Param("examId") Long examId, @Param("userId") Long userId, @Param("randomNum") Integer randomNum, @Param("orgId") Long orgId);
 
 
     /**
     /**
      * 查询在线巡考列表
      * 查询在线巡考列表
@@ -138,6 +131,7 @@ public interface TOeExamRecordMapper extends BaseMapper<TOeExamRecord> {
      * @param maxWarningCount
      * @param maxWarningCount
      * @param clientWebsocketStatus
      * @param clientWebsocketStatus
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public IPage<InvigilateListPatrolBean> invigilatePagePatrolList(IPage<Map> iPage, @Param("examId") Long examId,
     public IPage<InvigilateListPatrolBean> invigilatePagePatrolList(IPage<Map> iPage, @Param("examId") Long examId,
@@ -153,7 +147,8 @@ public interface TOeExamRecordMapper extends BaseMapper<TOeExamRecord> {
                                                                     @Param("minWarningCount") Integer minWarningCount,
                                                                     @Param("minWarningCount") Integer minWarningCount,
                                                                     @Param("maxWarningCount") Integer maxWarningCount,
                                                                     @Param("maxWarningCount") Integer maxWarningCount,
                                                                     @Param("clientWebsocketStatus") String clientWebsocketStatus,
                                                                     @Param("clientWebsocketStatus") String clientWebsocketStatus,
-                                                                    @Param("userId") Long userId);
+                                                                    @Param("userId") Long userId,
+                                                                    @Param("orgId") Long orgId);
 
 
     /**
     /**
      * 预警提醒列表
      * 预警提醒列表
@@ -172,6 +167,7 @@ public interface TOeExamRecordMapper extends BaseMapper<TOeExamRecord> {
      * @param minWarningCount
      * @param minWarningCount
      * @param maxWarningCount
      * @param maxWarningCount
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public IPage<InvigilateListWarningBean> invigilatePageWarningList(IPage<Map> iPage, @Param("examId") Long examId,
     public IPage<InvigilateListWarningBean> invigilatePageWarningList(IPage<Map> iPage, @Param("examId") Long examId,
@@ -186,7 +182,8 @@ public interface TOeExamRecordMapper extends BaseMapper<TOeExamRecord> {
                                                                       @Param("maxExceptionCount") Integer maxExceptionCount,
                                                                       @Param("maxExceptionCount") Integer maxExceptionCount,
                                                                       @Param("minWarningCount") Integer minWarningCount,
                                                                       @Param("minWarningCount") Integer minWarningCount,
                                                                       @Param("maxWarningCount") Integer maxWarningCount,
                                                                       @Param("maxWarningCount") Integer maxWarningCount,
-                                                                      @Param("userId") Long userId);
+                                                                      @Param("userId") Long userId,
+                                                                      @Param("orgId") Long orgId);
 
 
     /**
     /**
      * 预警提醒清除未阅列表
      * 预警提醒清除未阅列表
@@ -204,6 +201,7 @@ public interface TOeExamRecordMapper extends BaseMapper<TOeExamRecord> {
      * @param minWarningCount
      * @param minWarningCount
      * @param maxWarningCount
      * @param maxWarningCount
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public Integer approveStatusListUpdate(@Param("examId") Long examId,
     public Integer approveStatusListUpdate(@Param("examId") Long examId,
@@ -218,7 +216,8 @@ public interface TOeExamRecordMapper extends BaseMapper<TOeExamRecord> {
                                            @Param("maxExceptionCount") Integer maxExceptionCount,
                                            @Param("maxExceptionCount") Integer maxExceptionCount,
                                            @Param("minWarningCount") Integer minWarningCount,
                                            @Param("minWarningCount") Integer minWarningCount,
                                            @Param("maxWarningCount") Integer maxWarningCount,
                                            @Param("maxWarningCount") Integer maxWarningCount,
-                                           @Param("userId") Long userId);
+                                           @Param("userId") Long userId,
+                                           @Param("orgId") Long orgId);
 
 
     /**
     /**
      * 进度查询列表
      * 进度查询列表
@@ -231,6 +230,7 @@ public interface TOeExamRecordMapper extends BaseMapper<TOeExamRecord> {
      * @param name
      * @param name
      * @param identity
      * @param identity
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public IPage<InvigilateListProgressBean> invigilatePageProgressList(IPage<Map> iPage, @Param("examId") Long examId,
     public IPage<InvigilateListProgressBean> invigilatePageProgressList(IPage<Map> iPage, @Param("examId") Long examId,
@@ -239,7 +239,8 @@ public interface TOeExamRecordMapper extends BaseMapper<TOeExamRecord> {
                                                                         @Param("courseCode") String courseCode,
                                                                         @Param("courseCode") String courseCode,
                                                                         @Param("name") String name,
                                                                         @Param("name") String name,
                                                                         @Param("identity") String identity,
                                                                         @Param("identity") String identity,
-                                                                        @Param("userId") Long userId);
+                                                                        @Param("userId") Long userId,
+                                                                        @Param("orgId") Long orgId);
 
 
     /**
     /**
      * 进度查询列表导出
      * 进度查询列表导出
@@ -251,6 +252,7 @@ public interface TOeExamRecordMapper extends BaseMapper<TOeExamRecord> {
      * @param name
      * @param name
      * @param identity
      * @param identity
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public List<InvigilateListProgressExcelBean> invigilatePageProgressListExport(@Param("examId") Long examId,
     public List<InvigilateListProgressExcelBean> invigilatePageProgressListExport(@Param("examId") Long examId,
@@ -259,7 +261,8 @@ public interface TOeExamRecordMapper extends BaseMapper<TOeExamRecord> {
                                                                                   @Param("courseCode") String courseCode,
                                                                                   @Param("courseCode") String courseCode,
                                                                                   @Param("name") String name,
                                                                                   @Param("name") String name,
                                                                                   @Param("identity") String identity,
                                                                                   @Param("identity") String identity,
-                                                                                  @Param("userId") Long userId);
+                                                                                  @Param("userId") Long userId,
+                                                                                  @Param("orgId") Long orgId);
 
 
     /**
     /**
      * 监考明细管理列表
      * 监考明细管理列表
@@ -281,6 +284,7 @@ public interface TOeExamRecordMapper extends BaseMapper<TOeExamRecord> {
      * @param minWarningCount
      * @param minWarningCount
      * @param maxWarningCount
      * @param maxWarningCount
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public IPage<InvigilateListHistoryBean> invigilatePageListHistory(IPage<Map> iPage, @Param("examId") Long examId,
     public IPage<InvigilateListHistoryBean> invigilatePageListHistory(IPage<Map> iPage, @Param("examId") Long examId,
@@ -298,7 +302,8 @@ public interface TOeExamRecordMapper extends BaseMapper<TOeExamRecord> {
                                                                       @Param("maxExceptionCount") Integer maxExceptionCount,
                                                                       @Param("maxExceptionCount") Integer maxExceptionCount,
                                                                       @Param("minWarningCount") Integer minWarningCount,
                                                                       @Param("minWarningCount") Integer minWarningCount,
                                                                       @Param("maxWarningCount") Integer maxWarningCount,
                                                                       @Param("maxWarningCount") Integer maxWarningCount,
-                                                                      @Param("userId") Long userId);
+                                                                      @Param("userId") Long userId,
+                                                                      @Param("orgId") Long orgId);
 
 
     public List<Map<String, Object>> getDoneCount(@Param("examId") Long examId, @Param("activityId") Long activityId,
     public List<Map<String, Object>> getDoneCount(@Param("examId") Long examId, @Param("activityId") Long activityId,
                                                   @Param("roomCode") String roomCode, @Param("courseCode") String courseCode);
                                                   @Param("roomCode") String roomCode, @Param("courseCode") String courseCode);
@@ -343,6 +348,6 @@ public interface TOeExamRecordMapper extends BaseMapper<TOeExamRecord> {
 
 
     public void updateHasAnswerFile(@Param("recordId") Long recordId, @Param("hasAnswerFile") Integer hasAnswerFile);
     public void updateHasAnswerFile(@Param("recordId") Long recordId, @Param("hasAnswerFile") Integer hasAnswerFile);
 
 
-	public List<OpenRecordNeedMarkBean> findExamRecordNeedMark(@Param("examId") Long examId,@Param("courseCode") String courseCode,
-			@Param("idGt")Integer idGt,@Param("count")Integer count);
+    public List<OpenRecordNeedMarkBean> findExamRecordNeedMark(@Param("examId") Long examId, @Param("courseCode") String courseCode,
+                                                               @Param("idGt") Integer idGt, @Param("count") Integer count);
 }
 }

+ 7 - 2
themis-business/src/main/java/com/qmth/themis/business/service/TBExamInvigilateUserService.java

@@ -25,14 +25,19 @@ public interface TBExamInvigilateUserService extends IService<TBExamInvigilateUs
      * @param examId
      * @param examId
      * @param roomCode
      * @param roomCode
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
-    public IPage<TBExamInvigilateUserDto> examInvigilateUserQuery(IPage<Map> iPage, Long examId, String roomCode, Long userId);
+    public IPage<TBExamInvigilateUserDto> examInvigilateUserQuery(IPage<Map> iPage, Long examId, String roomCode, Long userId, Long orgId);
 
 
     /**
     /**
      * 监考员导出
      * 监考员导出
      *
      *
+     * @param examId
+     * @param roomCode
+     * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
-    public List<RoomCodeExportDto> examInvigilateUserExport();
+    public List<RoomCodeExportDto> examInvigilateUserExport(Long examId, String roomCode, Long userId, Long orgId);
 }
 }

+ 2 - 1
themis-business/src/main/java/com/qmth/themis/business/service/TBUserService.java

@@ -25,7 +25,8 @@ public interface TBUserService extends IService<TBUser> {
      * @param name
      * @param name
      * @param role
      * @param role
      * @param enable
      * @param enable
+     * @param orgId
      * @return
      * @return
      */
      */
-    IPage<TBUserDto> userQuery(IPage<Map> iPage, Long id, String loginName, String name, String role, Integer enable);
+    IPage<TBUserDto> userQuery(IPage<Map> iPage, Long id, String loginName, String name, String role, Integer enable, Long orgId);
 }
 }

+ 11 - 4
themis-business/src/main/java/com/qmth/themis/business/service/TEExamReexamService.java

@@ -29,6 +29,7 @@ public interface TEExamReexamService extends IService<TEExamReexam> {
      * @param name
      * @param name
      * @param identity
      * @param identity
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public IPage<ReexamListRequestBean> reexamPageRequestList(IPage<Map> iPage, Long examId,
     public IPage<ReexamListRequestBean> reexamPageRequestList(IPage<Map> iPage, Long examId,
@@ -37,7 +38,8 @@ public interface TEExamReexamService extends IService<TEExamReexam> {
                                                               String courseCode,
                                                               String courseCode,
                                                               String name,
                                                               String name,
                                                               String identity,
                                                               String identity,
-                                                              Long userId);
+                                                              Long userId,
+                                                              Long orgId);
 
 
     /**
     /**
      * 重考待审列表
      * 重考待审列表
@@ -54,6 +56,7 @@ public interface TEExamReexamService extends IService<TEExamReexam> {
      * @param reasonEndTime
      * @param reasonEndTime
      * @param applyName
      * @param applyName
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public IPage<ReexamListNotDoneBean> reexamPageNotDoneList(IPage<Map> iPage, Long examId,
     public IPage<ReexamListNotDoneBean> reexamPageNotDoneList(IPage<Map> iPage, Long examId,
@@ -66,16 +69,18 @@ public interface TEExamReexamService extends IService<TEExamReexam> {
                                                               Long reasonStartTime,
                                                               Long reasonStartTime,
                                                               Long reasonEndTime,
                                                               Long reasonEndTime,
                                                               String applyName,
                                                               String applyName,
-                                                              Long userId);
+                                                              Long userId,
+                                                              Long orgId);
 
 
     /**
     /**
      * 重考待审提醒
      * 重考待审提醒
      *
      *
      * @param examId
      * @param examId
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
-    public Integer reexamPageNotDoneCount(Long examId, Long userId);
+    public Integer reexamPageNotDoneCount(Long examId, Long userId, Long orgId);
 
 
     /**
     /**
      * 重考已审列表
      * 重考已审列表
@@ -92,6 +97,7 @@ public interface TEExamReexamService extends IService<TEExamReexam> {
      * @param reasonEndTime
      * @param reasonEndTime
      * @param applyName
      * @param applyName
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public IPage<ReexamListDoneBean> reexamPageDoneList(IPage<Map> iPage, Long examId,
     public IPage<ReexamListDoneBean> reexamPageDoneList(IPage<Map> iPage, Long examId,
@@ -104,5 +110,6 @@ public interface TEExamReexamService extends IService<TEExamReexam> {
                                                         Long reasonStartTime,
                                                         Long reasonStartTime,
                                                         Long reasonEndTime,
                                                         Long reasonEndTime,
                                                         String applyName,
                                                         String applyName,
-                                                        Long userId);
+                                                        Long userId,
+                                                        Long orgId);
 }
 }

+ 14 - 12
themis-business/src/main/java/com/qmth/themis/business/service/TEStudentService.java

@@ -1,15 +1,14 @@
 package com.qmth.themis.business.service;
 package com.qmth.themis.business.service;
 
 
-import java.util.Map;
-
-import org.springframework.web.multipart.MultipartFile;
-
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.service.IService;
 import com.baomidou.mybatisplus.extension.service.IService;
 import com.qmth.themis.business.bean.backend.StudentPhotoUploadResponseBean;
 import com.qmth.themis.business.bean.backend.StudentPhotoUploadResponseBean;
 import com.qmth.themis.business.dto.response.TEStudentDto;
 import com.qmth.themis.business.dto.response.TEStudentDto;
 import com.qmth.themis.business.dto.response.TEStudentExamRecordDto;
 import com.qmth.themis.business.dto.response.TEStudentExamRecordDto;
 import com.qmth.themis.business.entity.TEStudent;
 import com.qmth.themis.business.entity.TEStudent;
+import org.springframework.web.multipart.MultipartFile;
+
+import java.util.Map;
 
 
 /**
 /**
  * @Description: 学生档案 服务类
  * @Description: 学生档案 服务类
@@ -27,9 +26,10 @@ public interface TEStudentService extends IService<TEStudent> {
      * @param identity
      * @param identity
      * @param name
      * @param name
      * @param enable
      * @param enable
+     * @param orgId
      * @return
      * @return
      */
      */
-    public IPage<TEStudentDto> studentQuery(IPage<Map> iPage, String identity, String name, Integer enable);
+    public IPage<TEStudentDto> studentQuery(IPage<Map> iPage, String identity, String name, Integer enable, Long orgId);
 
 
     /**
     /**
      * 学生考试记录查询
      * 学生考试记录查询
@@ -41,12 +41,14 @@ public interface TEStudentService extends IService<TEStudent> {
      */
      */
     public IPage<TEStudentExamRecordDto> studentExamRecordQuery(IPage<Map> iPage, Long studentId, Long examId);
     public IPage<TEStudentExamRecordDto> studentExamRecordQuery(IPage<Map> iPage, Long studentId, Long examId);
 
 
-	/**底照上传
-	 * @param orgId
-	 * @param identity
-	 * @param file
-	 * @param md5
-	 * @return
-	 */
+    /**
+     * 底照上传
+     *
+     * @param orgId
+     * @param identity
+     * @param file
+     * @param md5
+     * @return
+     */
     public StudentPhotoUploadResponseBean photoUpload(Long orgId, String identity, MultipartFile file, String md5);
     public StudentPhotoUploadResponseBean photoUpload(Long orgId, String identity, MultipartFile file, String md5);
 }
 }

+ 3 - 1
themis-business/src/main/java/com/qmth/themis/business/service/TIeInvigilateWarnInfoService.java

@@ -22,12 +22,14 @@ public interface TIeInvigilateWarnInfoService extends IService<TIeInvigilateWarn
      * @param examActivityId
      * @param examActivityId
      * @param roomCode
      * @param roomCode
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public Integer warningCount(Long examId,
     public Integer warningCount(Long examId,
                                 Long examActivityId,
                                 Long examActivityId,
                                 String roomCode,
                                 String roomCode,
-                                Long userId);
+                                Long userId,
+                                Long orgId);
 
 
     /**
     /**
      * 预警通知
      * 预警通知

+ 25 - 10
themis-business/src/main/java/com/qmth/themis/business/service/TOeExamRecordService.java

@@ -140,6 +140,7 @@ public interface TOeExamRecordService extends IService<TOeExamRecord> {
      * @param maxWarningCount
      * @param maxWarningCount
      * @param clientWebsocketStatus
      * @param clientWebsocketStatus
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public IPage<InvigilateListVideoBean> invigilatePageListVideo(IPage<Map> iPage, Long examId,
     public IPage<InvigilateListVideoBean> invigilatePageListVideo(IPage<Map> iPage, Long examId,
@@ -152,7 +153,8 @@ public interface TOeExamRecordService extends IService<TOeExamRecord> {
                                                                   Integer minWarningCount,
                                                                   Integer minWarningCount,
                                                                   Integer maxWarningCount,
                                                                   Integer maxWarningCount,
                                                                   String clientWebsocketStatus,
                                                                   String clientWebsocketStatus,
-                                                                  Long userId);
+                                                                  Long userId,
+                                                                  Long orgId);
 
 
     /**
     /**
      * 实时监控台视频随机列表
      * 实时监控台视频随机列表
@@ -160,9 +162,10 @@ public interface TOeExamRecordService extends IService<TOeExamRecord> {
      * @param examId
      * @param examId
      * @param userId
      * @param userId
      * @param randomNum
      * @param randomNum
+     * @param orgId
      * @return
      * @return
      */
      */
-    public List<InvigilateListVideoBean> invigilatePageListVideoRandom(Long examId, Long userId, Integer randomNum);
+    public List<InvigilateListVideoBean> invigilatePageListVideoRandom(Long examId, Long userId, Integer randomNum, Long orgId);
 
 
     /**
     /**
      * 查询在线巡考列表
      * 查询在线巡考列表
@@ -182,6 +185,7 @@ public interface TOeExamRecordService extends IService<TOeExamRecord> {
      * @param maxWarningCount
      * @param maxWarningCount
      * @param clientWebsocketStatus
      * @param clientWebsocketStatus
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public IPage<InvigilateListPatrolBean> invigilatePagePatrolList(IPage<Map> iPage, Long examId,
     public IPage<InvigilateListPatrolBean> invigilatePagePatrolList(IPage<Map> iPage, Long examId,
@@ -197,7 +201,8 @@ public interface TOeExamRecordService extends IService<TOeExamRecord> {
                                                                     Integer minWarningCount,
                                                                     Integer minWarningCount,
                                                                     Integer maxWarningCount,
                                                                     Integer maxWarningCount,
                                                                     String clientWebsocketStatus,
                                                                     String clientWebsocketStatus,
-                                                                    Long userId);
+                                                                    Long userId,
+                                                                    Long orgId);
 
 
     /**
     /**
      * 预警提醒列表
      * 预警提醒列表
@@ -216,6 +221,7 @@ public interface TOeExamRecordService extends IService<TOeExamRecord> {
      * @param minWarningCount
      * @param minWarningCount
      * @param maxWarningCount
      * @param maxWarningCount
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public IPage<InvigilateListWarningBean> invigilatePageWarningList(IPage<Map> iPage, Long examId,
     public IPage<InvigilateListWarningBean> invigilatePageWarningList(IPage<Map> iPage, Long examId,
@@ -230,7 +236,8 @@ public interface TOeExamRecordService extends IService<TOeExamRecord> {
                                                                       Integer maxExceptionCount,
                                                                       Integer maxExceptionCount,
                                                                       Integer minWarningCount,
                                                                       Integer minWarningCount,
                                                                       Integer maxWarningCount,
                                                                       Integer maxWarningCount,
-                                                                      Long userId);
+                                                                      Long userId,
+                                                                      Long orgId);
 
 
     /**
     /**
      * 预警提醒清除未阅列表
      * 预警提醒清除未阅列表
@@ -248,6 +255,7 @@ public interface TOeExamRecordService extends IService<TOeExamRecord> {
      * @param minWarningCount
      * @param minWarningCount
      * @param maxWarningCount
      * @param maxWarningCount
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public Integer approveStatusListUpdate(Long examId,
     public Integer approveStatusListUpdate(Long examId,
@@ -262,7 +270,8 @@ public interface TOeExamRecordService extends IService<TOeExamRecord> {
                                            Integer maxExceptionCount,
                                            Integer maxExceptionCount,
                                            Integer minWarningCount,
                                            Integer minWarningCount,
                                            Integer maxWarningCount,
                                            Integer maxWarningCount,
-                                           Long userId);
+                                           Long userId,
+                                           Long orgId);
 
 
     /**
     /**
      * 进度查询列表
      * 进度查询列表
@@ -275,6 +284,7 @@ public interface TOeExamRecordService extends IService<TOeExamRecord> {
      * @param name
      * @param name
      * @param identity
      * @param identity
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public IPage<InvigilateListProgressBean> invigilatePageProgressList(IPage<Map> iPage, Long examId,
     public IPage<InvigilateListProgressBean> invigilatePageProgressList(IPage<Map> iPage, Long examId,
@@ -283,7 +293,8 @@ public interface TOeExamRecordService extends IService<TOeExamRecord> {
                                                                         String courseCode,
                                                                         String courseCode,
                                                                         String name,
                                                                         String name,
                                                                         String identity,
                                                                         String identity,
-                                                                        Long userId);
+                                                                        Long userId,
+                                                                        Long orgId);
 
 
     /**
     /**
      * 进度查询列表导出
      * 进度查询列表导出
@@ -295,6 +306,7 @@ public interface TOeExamRecordService extends IService<TOeExamRecord> {
      * @param name
      * @param name
      * @param identity
      * @param identity
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public List<InvigilateListProgressExcelBean> invigilatePageProgressListExport(Long examId,
     public List<InvigilateListProgressExcelBean> invigilatePageProgressListExport(Long examId,
@@ -303,7 +315,8 @@ public interface TOeExamRecordService extends IService<TOeExamRecord> {
                                                                                   String courseCode,
                                                                                   String courseCode,
                                                                                   String name,
                                                                                   String name,
                                                                                   String identity,
                                                                                   String identity,
-                                                                                  Long userId);
+                                                                                  Long userId,
+                                                                                  Long orgId);
 
 
     /**
     /**
      * 监考明细管理列表
      * 监考明细管理列表
@@ -325,6 +338,7 @@ public interface TOeExamRecordService extends IService<TOeExamRecord> {
      * @param minWarningCount
      * @param minWarningCount
      * @param maxWarningCount
      * @param maxWarningCount
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     public IPage<InvigilateListHistoryBean> invigilatePageListHistory(IPage<Map> iPage, Long examId,
     public IPage<InvigilateListHistoryBean> invigilatePageListHistory(IPage<Map> iPage, Long examId,
@@ -342,7 +356,8 @@ public interface TOeExamRecordService extends IService<TOeExamRecord> {
                                                                       Integer maxExceptionCount,
                                                                       Integer maxExceptionCount,
                                                                       Integer minWarningCount,
                                                                       Integer minWarningCount,
                                                                       Integer maxWarningCount,
                                                                       Integer maxWarningCount,
-                                                                      Long userId);
+                                                                      Long userId,
+                                                                      Long orgId);
 
 
 
 
     /**
     /**
@@ -371,6 +386,6 @@ public interface TOeExamRecordService extends IService<TOeExamRecord> {
 
 
     TOeExamRecord findOneByExamId(Long examId, ExamRecordStatusEnum status);
     TOeExamRecord findOneByExamId(Long examId, ExamRecordStatusEnum status);
 
 
-	public List<OpenRecordNeedMarkBean> findExamRecordNeedMark(Long examId, String courseCode, Integer idGt,
-			Integer count);
+    public List<OpenRecordNeedMarkBean> findExamRecordNeedMark(Long examId, String courseCode, Integer idGt,
+                                                               Integer count);
 }
 }

+ 9 - 4
themis-business/src/main/java/com/qmth/themis/business/service/impl/TBExamInvigilateUserServiceImpl.java

@@ -33,20 +33,25 @@ public class TBExamInvigilateUserServiceImpl extends ServiceImpl<TBExamInvigilat
      * @param examId
      * @param examId
      * @param roomCode
      * @param roomCode
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public IPage<TBExamInvigilateUserDto> examInvigilateUserQuery(IPage<Map> iPage, Long examId, String roomCode, Long userId) {
-        return tbExamInvigilateUserMapper.examInvigilateUserQuery(iPage, examId, roomCode, userId);
+    public IPage<TBExamInvigilateUserDto> examInvigilateUserQuery(IPage<Map> iPage, Long examId, String roomCode, Long userId, Long orgId) {
+        return tbExamInvigilateUserMapper.examInvigilateUserQuery(iPage, examId, roomCode, userId, orgId);
     }
     }
 
 
     /**
     /**
      * 监考员导出
      * 监考员导出
      *
      *
+     * @param examId
+     * @param roomCode
+     * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public List<RoomCodeExportDto> examInvigilateUserExport() {
-        return tbExamInvigilateUserMapper.examInvigilateUserExport();
+    public List<RoomCodeExportDto> examInvigilateUserExport(Long examId, String roomCode, Long userId, Long orgId) {
+        return tbExamInvigilateUserMapper.examInvigilateUserExport(examId, roomCode, userId, orgId);
     }
     }
 }
 }

+ 3 - 3
themis-business/src/main/java/com/qmth/themis/business/service/impl/TBUserServiceImpl.java

@@ -9,7 +9,6 @@ import com.qmth.themis.business.service.TBUserService;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
 
 
 import javax.annotation.Resource;
 import javax.annotation.Resource;
-import java.util.List;
 import java.util.Map;
 import java.util.Map;
 
 
 /**
 /**
@@ -34,10 +33,11 @@ public class TBUserServiceImpl extends ServiceImpl<TBUserMapper, TBUser> impleme
      * @param name
      * @param name
      * @param role
      * @param role
      * @param enable
      * @param enable
+     * @param orgId
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public IPage<TBUserDto> userQuery(IPage<Map> iPage, Long id, String loginName, String name, String role, Integer enable) {
-        return tbUserMapper.userQuery(iPage, id, loginName, name, role, enable);
+    public IPage<TBUserDto> userQuery(IPage<Map> iPage, Long id, String loginName, String name, String role, Integer enable, Long orgId) {
+        return tbUserMapper.userQuery(iPage, id, loginName, name, role, enable, orgId);
     }
     }
 }
 }

+ 12 - 8
themis-business/src/main/java/com/qmth/themis/business/service/impl/TEExamReexamServiceImpl.java

@@ -37,11 +37,12 @@ public class TEExamReexamServiceImpl extends ServiceImpl<TEExamReexamMapper, TEE
      * @param name
      * @param name
      * @param identity
      * @param identity
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public IPage<ReexamListRequestBean> reexamPageRequestList(IPage<Map> iPage, Long examId, Long examActivityId, String roomCode, String courseCode, String name, String identity, Long userId) {
-        return teExamReexamMapper.reexamPageRequestList(iPage, examId, examActivityId, roomCode, courseCode, name, identity, userId);
+    public IPage<ReexamListRequestBean> reexamPageRequestList(IPage<Map> iPage, Long examId, Long examActivityId, String roomCode, String courseCode, String name, String identity, Long userId, Long orgId) {
+        return teExamReexamMapper.reexamPageRequestList(iPage, examId, examActivityId, roomCode, courseCode, name, identity, userId, orgId);
     }
     }
 
 
     /**
     /**
@@ -59,11 +60,12 @@ public class TEExamReexamServiceImpl extends ServiceImpl<TEExamReexamMapper, TEE
      * @param reasonEndTime
      * @param reasonEndTime
      * @param applyName
      * @param applyName
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public IPage<ReexamListNotDoneBean> reexamPageNotDoneList(IPage<Map> iPage, Long examId, Long examActivityId, String roomCode, String courseCode, String name, String identity, String reason, Long reasonStartTime, Long reasonEndTime, String applyName, Long userId) {
-        return teExamReexamMapper.reexamPageNotDoneList(iPage, examId, examActivityId, roomCode, courseCode, name, identity, reason, reasonStartTime, reasonEndTime, applyName, userId);
+    public IPage<ReexamListNotDoneBean> reexamPageNotDoneList(IPage<Map> iPage, Long examId, Long examActivityId, String roomCode, String courseCode, String name, String identity, String reason, Long reasonStartTime, Long reasonEndTime, String applyName, Long userId, Long orgId) {
+        return teExamReexamMapper.reexamPageNotDoneList(iPage, examId, examActivityId, roomCode, courseCode, name, identity, reason, reasonStartTime, reasonEndTime, applyName, userId, orgId);
     }
     }
 
 
     /**
     /**
@@ -71,11 +73,12 @@ public class TEExamReexamServiceImpl extends ServiceImpl<TEExamReexamMapper, TEE
      *
      *
      * @param examId
      * @param examId
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public Integer reexamPageNotDoneCount(Long examId, Long userId) {
-        return teExamReexamMapper.reexamPageNotDoneCount(examId, userId);
+    public Integer reexamPageNotDoneCount(Long examId, Long userId, Long orgId) {
+        return teExamReexamMapper.reexamPageNotDoneCount(examId, userId, orgId);
     }
     }
 
 
     /**
     /**
@@ -93,10 +96,11 @@ public class TEExamReexamServiceImpl extends ServiceImpl<TEExamReexamMapper, TEE
      * @param reasonEndTime
      * @param reasonEndTime
      * @param applyName
      * @param applyName
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public IPage<ReexamListDoneBean> reexamPageDoneList(IPage<Map> iPage, Long examId, Long examActivityId, String roomCode, String courseCode, String name, String identity, Integer auditingStatus, Long reasonStartTime, Long reasonEndTime, String applyName, Long userId) {
-        return teExamReexamMapper.reexamPageDoneList(iPage, examId, examActivityId, roomCode, courseCode, name, identity, auditingStatus, reasonStartTime, reasonEndTime, applyName, userId);
+    public IPage<ReexamListDoneBean> reexamPageDoneList(IPage<Map> iPage, Long examId, Long examActivityId, String roomCode, String courseCode, String name, String identity, Integer auditingStatus, Long reasonStartTime, Long reasonEndTime, String applyName, Long userId, Long orgId) {
+        return teExamReexamMapper.reexamPageDoneList(iPage, examId, examActivityId, roomCode, courseCode, name, identity, auditingStatus, reasonStartTime, reasonEndTime, applyName, userId, orgId);
     }
     }
 }
 }

+ 37 - 38
themis-business/src/main/java/com/qmth/themis/business/service/impl/TEStudentServiceImpl.java

@@ -1,32 +1,30 @@
 package com.qmth.themis.business.service.impl;
 package com.qmth.themis.business.service.impl;
 
 
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.Map;
-
-import javax.annotation.Resource;
-
-import com.google.gson.Gson;
-import com.qmth.themis.business.dto.cache.TEStudentCacheDto;
-import com.qmth.themis.business.util.RedisUtil;
-import org.apache.commons.codec.digest.DigestUtils;
-import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
-import org.springframework.web.multipart.MultipartFile;
-
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.google.gson.Gson;
 import com.qmth.themis.business.bean.backend.StudentPhotoUploadResponseBean;
 import com.qmth.themis.business.bean.backend.StudentPhotoUploadResponseBean;
 import com.qmth.themis.business.config.SystemConfig;
 import com.qmth.themis.business.config.SystemConfig;
 import com.qmth.themis.business.dao.TEStudentMapper;
 import com.qmth.themis.business.dao.TEStudentMapper;
+import com.qmth.themis.business.dto.cache.TEStudentCacheDto;
 import com.qmth.themis.business.dto.response.TEStudentDto;
 import com.qmth.themis.business.dto.response.TEStudentDto;
 import com.qmth.themis.business.dto.response.TEStudentExamRecordDto;
 import com.qmth.themis.business.dto.response.TEStudentExamRecordDto;
 import com.qmth.themis.business.entity.TEStudent;
 import com.qmth.themis.business.entity.TEStudent;
 import com.qmth.themis.business.service.TEStudentService;
 import com.qmth.themis.business.service.TEStudentService;
 import com.qmth.themis.business.util.OssUtil;
 import com.qmth.themis.business.util.OssUtil;
+import com.qmth.themis.business.util.RedisUtil;
 import com.qmth.themis.common.exception.BusinessException;
 import com.qmth.themis.common.exception.BusinessException;
+import org.apache.commons.codec.digest.DigestUtils;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+import org.springframework.web.multipart.MultipartFile;
+
+import javax.annotation.Resource;
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.Map;
 
 
 /**
 /**
  * @Description: 学生档案 服务实现类
  * @Description: 学生档案 服务实现类
@@ -40,7 +38,7 @@ public class TEStudentServiceImpl extends ServiceImpl<TEStudentMapper, TEStudent
 
 
     @Resource
     @Resource
     TEStudentMapper teStudentMapper;
     TEStudentMapper teStudentMapper;
-    
+
     @Resource
     @Resource
     SystemConfig systemConfig;
     SystemConfig systemConfig;
 
 
@@ -54,11 +52,12 @@ public class TEStudentServiceImpl extends ServiceImpl<TEStudentMapper, TEStudent
      * @param identity
      * @param identity
      * @param name
      * @param name
      * @param enable
      * @param enable
+     * @param orgId
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public IPage<TEStudentDto> studentQuery(IPage<Map> iPage, String identity, String name, Integer enable) {
-        return teStudentMapper.studentQuery(iPage, identity, name, enable);
+    public IPage<TEStudentDto> studentQuery(IPage<Map> iPage, String identity, String name, Integer enable, Long orgId) {
+        return teStudentMapper.studentQuery(iPage, identity, name, enable, orgId);
     }
     }
 
 
     /**
     /**
@@ -73,40 +72,40 @@ public class TEStudentServiceImpl extends ServiceImpl<TEStudentMapper, TEStudent
     public IPage<TEStudentExamRecordDto> studentExamRecordQuery(IPage<Map> iPage, Long studentId, Long examId) {
     public IPage<TEStudentExamRecordDto> studentExamRecordQuery(IPage<Map> iPage, Long studentId, Long examId) {
         return teStudentMapper.studentExamRecordQuery(iPage, studentId, examId);
         return teStudentMapper.studentExamRecordQuery(iPage, studentId, examId);
     }
     }
-    
-    
+
+
     @Transactional
     @Transactional
     @Override
     @Override
     public StudentPhotoUploadResponseBean photoUpload(Long orgId, String identity, MultipartFile file, String md5) {
     public StudentPhotoUploadResponseBean photoUpload(Long orgId, String identity, MultipartFile file, String md5) {
-    	QueryWrapper<TEStudent> wrapper = new QueryWrapper<>();
-    	wrapper.lambda().eq(TEStudent::getOrgId, orgId);
-    	wrapper.lambda().eq(TEStudent::getIdentity, identity);
-    	TEStudent student=this.getOne(wrapper);
-    	if(student==null) {
-    		throw new BusinessException("学生不存在");
-    	}
-    	String fileName = file.getOriginalFilename();
-        String suffix = fileName.substring(fileName.lastIndexOf(".")+1).toLowerCase();
-        String filePath = "base_photo/"+orgId+"/"+student.getId()+"."+suffix;
+        QueryWrapper<TEStudent> wrapper = new QueryWrapper<>();
+        wrapper.lambda().eq(TEStudent::getOrgId, orgId);
+        wrapper.lambda().eq(TEStudent::getIdentity, identity);
+        TEStudent student = this.getOne(wrapper);
+        if (student == null) {
+            throw new BusinessException("学生不存在");
+        }
+        String fileName = file.getOriginalFilename();
+        String suffix = fileName.substring(fileName.lastIndexOf(".") + 1).toLowerCase();
+        String filePath = "base_photo/" + orgId + "/" + student.getId() + "." + suffix;
         InputStream in = null;
         InputStream in = null;
         try {
         try {
-        	String fileMd5 = DigestUtils.md5Hex(file.getBytes());
-        	if (!md5.equals(fileMd5)) {
-        		throw new BusinessException("文件md5不一致");
-        	}
-        	student.setBasePhotoPath(filePath);
-        	this.saveOrUpdate(student);
+            String fileMd5 = DigestUtils.md5Hex(file.getBytes());
+            if (!md5.equals(fileMd5)) {
+                throw new BusinessException("文件md5不一致");
+            }
+            student.setBasePhotoPath(filePath);
+            this.saveOrUpdate(student);
             Gson gson = new Gson();
             Gson gson = new Gson();
             TEStudentCacheDto teStudentCacheDto = gson.fromJson(gson.toJson(student), TEStudentCacheDto.class);
             TEStudentCacheDto teStudentCacheDto = gson.fromJson(gson.toJson(student), TEStudentCacheDto.class);
             redisUtil.setStudent(student.getId(), teStudentCacheDto);
             redisUtil.setStudent(student.getId(), teStudentCacheDto);
             in = file.getInputStream();
             in = file.getInputStream();
             OssUtil.ossUploadStream(systemConfig.getOssEnv(3), filePath, in);
             OssUtil.ossUploadStream(systemConfig.getOssEnv(3), filePath, in);
             String url = systemConfig.getProperty("aliyun.oss.url") + File.separator + filePath;
             String url = systemConfig.getProperty("aliyun.oss.url") + File.separator + filePath;
-            StudentPhotoUploadResponseBean ret=new StudentPhotoUploadResponseBean();
+            StudentPhotoUploadResponseBean ret = new StudentPhotoUploadResponseBean();
             ret.setPhotoUrl(url);
             ret.setPhotoUrl(url);
             return ret;
             return ret;
         } catch (IOException e) {
         } catch (IOException e) {
-        	throw new BusinessException("文件读取出错");
+            throw new BusinessException("文件读取出错");
         } finally {
         } finally {
             if (in != null) {
             if (in != null) {
                 try {
                 try {

+ 3 - 2
themis-business/src/main/java/com/qmth/themis/business/service/impl/TIeInvigilateWarnInfoServiceImpl.java

@@ -30,11 +30,12 @@ public class TIeInvigilateWarnInfoServiceImpl extends ServiceImpl<TIeInvigilateW
      * @param examActivityId
      * @param examActivityId
      * @param roomCode
      * @param roomCode
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public Integer warningCount(Long examId, Long examActivityId, String roomCode, Long userId) {
-        return tIeInvigilateWarnInfoMapper.warningCount(examId, examActivityId, roomCode, userId);
+    public Integer warningCount(Long examId, Long examActivityId, String roomCode, Long userId, Long orgId) {
+        return tIeInvigilateWarnInfoMapper.warningCount(examId, examActivityId, roomCode, userId, orgId);
     }
     }
 
 
     /**
     /**

+ 45 - 69
themis-business/src/main/java/com/qmth/themis/business/service/impl/TOeExamRecordServiceImpl.java

@@ -1,44 +1,13 @@
 package com.qmth.themis.business.service.impl;
 package com.qmth.themis.business.service.impl;
 
 
-import java.io.File;
-import java.math.BigDecimal;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Objects;
-import java.util.UUID;
-
-import javax.annotation.Resource;
-
-import org.apache.commons.lang3.StringUtils;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.beans.BeanUtils;
-import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
-
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONArray;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.qmth.themis.business.bean.backend.InvigilateListBean;
-import com.qmth.themis.business.bean.backend.InvigilateListHistoryBean;
-import com.qmth.themis.business.bean.backend.InvigilateListPatrolBean;
-import com.qmth.themis.business.bean.backend.InvigilateListProgressBean;
-import com.qmth.themis.business.bean.backend.InvigilateListProgressExcelBean;
-import com.qmth.themis.business.bean.backend.InvigilateListVideoBean;
-import com.qmth.themis.business.bean.backend.InvigilateListWarningBean;
-import com.qmth.themis.business.bean.backend.OpenRecordNeedMarkBean;
+import com.qmth.themis.business.bean.backend.*;
 import com.qmth.themis.business.cache.ExamRecordCacheUtil;
 import com.qmth.themis.business.cache.ExamRecordCacheUtil;
 import com.qmth.themis.business.cache.RedisKeyHelper;
 import com.qmth.themis.business.cache.RedisKeyHelper;
-import com.qmth.themis.business.cache.bean.ExamActivityCacheBean;
-import com.qmth.themis.business.cache.bean.ExamCacheBean;
-import com.qmth.themis.business.cache.bean.ExamPaperCacheBean;
-import com.qmth.themis.business.cache.bean.ExamStudentAnswerCacheBean;
-import com.qmth.themis.business.cache.bean.ExamStudentPaperStructCacheBean;
-import com.qmth.themis.business.cache.bean.ObjectiveAnswerCacheBean;
+import com.qmth.themis.business.cache.bean.*;
 import com.qmth.themis.business.config.SystemConfig;
 import com.qmth.themis.business.config.SystemConfig;
 import com.qmth.themis.business.constant.SpringContextHolder;
 import com.qmth.themis.business.constant.SpringContextHolder;
 import com.qmth.themis.business.constant.SystemConstant;
 import com.qmth.themis.business.constant.SystemConstant;
@@ -47,25 +16,25 @@ import com.qmth.themis.business.dto.MqDto;
 import com.qmth.themis.business.dto.response.TEExamUnFinishDto;
 import com.qmth.themis.business.dto.response.TEExamUnFinishDto;
 import com.qmth.themis.business.entity.TOeExamAnswer;
 import com.qmth.themis.business.entity.TOeExamAnswer;
 import com.qmth.themis.business.entity.TOeExamRecord;
 import com.qmth.themis.business.entity.TOeExamRecord;
-import com.qmth.themis.business.enums.ExamRecordFieldEnum;
-import com.qmth.themis.business.enums.ExamRecordStatusEnum;
-import com.qmth.themis.business.enums.ExamTypeEnum;
-import com.qmth.themis.business.enums.LivenessTypeEnum;
-import com.qmth.themis.business.enums.MqTagEnum;
-import com.qmth.themis.business.enums.MqTopicEnum;
-import com.qmth.themis.business.enums.ObjectiveScorePolicyEnum;
-import com.qmth.themis.business.enums.VerifyExceptionEnum;
-import com.qmth.themis.business.service.MqDtoService;
-import com.qmth.themis.business.service.TEExamActivityService;
-import com.qmth.themis.business.service.TEExamPaperService;
-import com.qmth.themis.business.service.TEExamService;
-import com.qmth.themis.business.service.TOeExamAnswerService;
-import com.qmth.themis.business.service.TOeExamRecordService;
+import com.qmth.themis.business.enums.*;
+import com.qmth.themis.business.service.*;
 import com.qmth.themis.business.util.OssUtil;
 import com.qmth.themis.business.util.OssUtil;
 import com.qmth.themis.business.util.RedisUtil;
 import com.qmth.themis.business.util.RedisUtil;
 import com.qmth.themis.common.contanst.Constants;
 import com.qmth.themis.common.contanst.Constants;
 import com.qmth.themis.common.util.FileUtil;
 import com.qmth.themis.common.util.FileUtil;
 import com.qmth.themis.common.util.SimpleBeanUtil;
 import com.qmth.themis.common.util.SimpleBeanUtil;
+import org.apache.commons.lang3.StringUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.BeanUtils;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import javax.annotation.Resource;
+import java.io.File;
+import java.math.BigDecimal;
+import java.text.SimpleDateFormat;
+import java.util.*;
 
 
 /**
 /**
  * @Description: 考试记录 服务实现类
  * @Description: 考试记录 服务实现类
@@ -562,11 +531,12 @@ public class TOeExamRecordServiceImpl extends ServiceImpl<TOeExamRecordMapper, T
      * @param maxWarningCount
      * @param maxWarningCount
      * @param clientWebsocketStatus
      * @param clientWebsocketStatus
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public IPage<InvigilateListVideoBean> invigilatePageListVideo(IPage<Map> iPage, Long examId, Long examActivityId, String roomCode, Integer paperDownload, String status, String name, String identity, Integer minWarningCount, Integer maxWarningCount, String clientWebsocketStatus, Long userId) {
-        return tOeExamRecordMapper.invigilatePageListVideo(iPage, examId, examActivityId, roomCode, paperDownload, status, name, identity, minWarningCount, maxWarningCount, clientWebsocketStatus, userId);
+    public IPage<InvigilateListVideoBean> invigilatePageListVideo(IPage<Map> iPage, Long examId, Long examActivityId, String roomCode, Integer paperDownload, String status, String name, String identity, Integer minWarningCount, Integer maxWarningCount, String clientWebsocketStatus, Long userId, Long orgId) {
+        return tOeExamRecordMapper.invigilatePageListVideo(iPage, examId, examActivityId, roomCode, paperDownload, status, name, identity, minWarningCount, maxWarningCount, clientWebsocketStatus, userId, orgId);
     }
     }
 
 
     /**
     /**
@@ -575,11 +545,12 @@ public class TOeExamRecordServiceImpl extends ServiceImpl<TOeExamRecordMapper, T
      * @param examId
      * @param examId
      * @param userId
      * @param userId
      * @param randomNum
      * @param randomNum
+     * @param orgId
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public List<InvigilateListVideoBean> invigilatePageListVideoRandom(Long examId, Long userId, Integer randomNum) {
-        return tOeExamRecordMapper.invigilatePageListVideoRandom(examId, userId, randomNum);
+    public List<InvigilateListVideoBean> invigilatePageListVideoRandom(Long examId, Long userId, Integer randomNum, Long orgId) {
+        return tOeExamRecordMapper.invigilatePageListVideoRandom(examId, userId, randomNum, orgId);
     }
     }
 
 
     /**
     /**
@@ -600,11 +571,12 @@ public class TOeExamRecordServiceImpl extends ServiceImpl<TOeExamRecordMapper, T
      * @param maxWarningCount
      * @param maxWarningCount
      * @param clientWebsocketStatus
      * @param clientWebsocketStatus
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public IPage<InvigilateListPatrolBean> invigilatePagePatrolList(IPage<Map> iPage, Long examId, Long examActivityId, String roomCode, String status, String name, String identity, Integer minMultipleFaceCount, Integer maxMultipleFaceCount, Integer minExceptionCount, Integer maxExceptionCount, Integer minWarningCount, Integer maxWarningCount, String clientWebsocketStatus, Long userId) {
-        return tOeExamRecordMapper.invigilatePagePatrolList(iPage, examId, examActivityId, roomCode, status, name, identity, minMultipleFaceCount, maxMultipleFaceCount, minExceptionCount, maxExceptionCount, minWarningCount, maxWarningCount, clientWebsocketStatus, userId);
+    public IPage<InvigilateListPatrolBean> invigilatePagePatrolList(IPage<Map> iPage, Long examId, Long examActivityId, String roomCode, String status, String name, String identity, Integer minMultipleFaceCount, Integer maxMultipleFaceCount, Integer minExceptionCount, Integer maxExceptionCount, Integer minWarningCount, Integer maxWarningCount, String clientWebsocketStatus, Long userId, Long orgId) {
+        return tOeExamRecordMapper.invigilatePagePatrolList(iPage, examId, examActivityId, roomCode, status, name, identity, minMultipleFaceCount, maxMultipleFaceCount, minExceptionCount, maxExceptionCount, minWarningCount, maxWarningCount, clientWebsocketStatus, userId, orgId);
     }
     }
 
 
     /**
     /**
@@ -624,11 +596,12 @@ public class TOeExamRecordServiceImpl extends ServiceImpl<TOeExamRecordMapper, T
      * @param minWarningCount
      * @param minWarningCount
      * @param maxWarningCount
      * @param maxWarningCount
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public IPage<InvigilateListWarningBean> invigilatePageWarningList(IPage<Map> iPage, Long examId, Long examActivityId, String roomCode, Integer approveStatus, String name, String identity, Integer minMultipleFaceCount, Integer maxMultipleFaceCount, Integer minExceptionCount, Integer maxExceptionCount, Integer minWarningCount, Integer maxWarningCount, Long userId) {
-        return tOeExamRecordMapper.invigilatePageWarningList(iPage, examId, examActivityId, roomCode, approveStatus, name, identity, minMultipleFaceCount, maxMultipleFaceCount, minExceptionCount, maxExceptionCount, minWarningCount, maxWarningCount, userId);
+    public IPage<InvigilateListWarningBean> invigilatePageWarningList(IPage<Map> iPage, Long examId, Long examActivityId, String roomCode, Integer approveStatus, String name, String identity, Integer minMultipleFaceCount, Integer maxMultipleFaceCount, Integer minExceptionCount, Integer maxExceptionCount, Integer minWarningCount, Integer maxWarningCount, Long userId, Long orgId) {
+        return tOeExamRecordMapper.invigilatePageWarningList(iPage, examId, examActivityId, roomCode, approveStatus, name, identity, minMultipleFaceCount, maxMultipleFaceCount, minExceptionCount, maxExceptionCount, minWarningCount, maxWarningCount, userId, orgId);
     }
     }
 
 
     /**
     /**
@@ -647,11 +620,12 @@ public class TOeExamRecordServiceImpl extends ServiceImpl<TOeExamRecordMapper, T
      * @param minWarningCount
      * @param minWarningCount
      * @param maxWarningCount
      * @param maxWarningCount
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public Integer approveStatusListUpdate(Long examId, Long examActivityId, String roomCode, Integer approveStatus, String name, String identity, Integer minMultipleFaceCount, Integer maxMultipleFaceCount, Integer minExceptionCount, Integer maxExceptionCount, Integer minWarningCount, Integer maxWarningCount, Long userId) {
-        return tOeExamRecordMapper.approveStatusListUpdate(examId, examActivityId, roomCode, approveStatus, name, identity, minMultipleFaceCount, maxMultipleFaceCount, minExceptionCount, maxExceptionCount, minWarningCount, maxWarningCount, userId);
+    public Integer approveStatusListUpdate(Long examId, Long examActivityId, String roomCode, Integer approveStatus, String name, String identity, Integer minMultipleFaceCount, Integer maxMultipleFaceCount, Integer minExceptionCount, Integer maxExceptionCount, Integer minWarningCount, Integer maxWarningCount, Long userId, Long orgId) {
+        return tOeExamRecordMapper.approveStatusListUpdate(examId, examActivityId, roomCode, approveStatus, name, identity, minMultipleFaceCount, maxMultipleFaceCount, minExceptionCount, maxExceptionCount, minWarningCount, maxWarningCount, userId, orgId);
     }
     }
 
 
     /**
     /**
@@ -668,8 +642,8 @@ public class TOeExamRecordServiceImpl extends ServiceImpl<TOeExamRecordMapper, T
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public IPage<InvigilateListProgressBean> invigilatePageProgressList(IPage<Map> iPage, Long examId, Long examActivityId, String roomCode, String courseCode, String name, String identity, Long userId) {
-        return tOeExamRecordMapper.invigilatePageProgressList(iPage, examId, examActivityId, roomCode, courseCode, name, identity, userId);
+    public IPage<InvigilateListProgressBean> invigilatePageProgressList(IPage<Map> iPage, Long examId, Long examActivityId, String roomCode, String courseCode, String name, String identity, Long userId, Long orgId) {
+        return tOeExamRecordMapper.invigilatePageProgressList(iPage, examId, examActivityId, roomCode, courseCode, name, identity, userId, orgId);
     }
     }
 
 
     /**
     /**
@@ -682,11 +656,12 @@ public class TOeExamRecordServiceImpl extends ServiceImpl<TOeExamRecordMapper, T
      * @param name
      * @param name
      * @param identity
      * @param identity
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public List<InvigilateListProgressExcelBean> invigilatePageProgressListExport(Long examId, Long examActivityId, String roomCode, String courseCode, String name, String identity, Long userId) {
-        return tOeExamRecordMapper.invigilatePageProgressListExport(examId, examActivityId, roomCode, courseCode, name, identity, userId);
+    public List<InvigilateListProgressExcelBean> invigilatePageProgressListExport(Long examId, Long examActivityId, String roomCode, String courseCode, String name, String identity, Long userId, Long orgId) {
+        return tOeExamRecordMapper.invigilatePageProgressListExport(examId, examActivityId, roomCode, courseCode, name, identity, userId, orgId);
     }
     }
 
 
     /**
     /**
@@ -709,11 +684,12 @@ public class TOeExamRecordServiceImpl extends ServiceImpl<TOeExamRecordMapper, T
      * @param minWarningCount
      * @param minWarningCount
      * @param maxWarningCount
      * @param maxWarningCount
      * @param userId
      * @param userId
+     * @param orgId
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public IPage<InvigilateListHistoryBean> invigilatePageListHistory(IPage<Map> iPage, Long examId, Long examActivityId, String roomCode, String courseCode, String status, Integer breachStatus, String finishType, String name, String identity, Integer minMultipleFaceCount, Integer maxMultipleFaceCount, Integer minExceptionCount, Integer maxExceptionCount, Integer minWarningCount, Integer maxWarningCount, Long userId) {
-        return tOeExamRecordMapper.invigilatePageListHistory(iPage, examId, examActivityId, roomCode, courseCode, status, breachStatus, finishType, name, identity, minMultipleFaceCount, maxMultipleFaceCount, minExceptionCount, maxExceptionCount, minWarningCount, maxWarningCount, userId);
+    public IPage<InvigilateListHistoryBean> invigilatePageListHistory(IPage<Map> iPage, Long examId, Long examActivityId, String roomCode, String courseCode, String status, Integer breachStatus, String finishType, String name, String identity, Integer minMultipleFaceCount, Integer maxMultipleFaceCount, Integer minExceptionCount, Integer maxExceptionCount, Integer minWarningCount, Integer maxWarningCount, Long userId, Long orgId) {
+        return tOeExamRecordMapper.invigilatePageListHistory(iPage, examId, examActivityId, roomCode, courseCode, status, breachStatus, finishType, name, identity, minMultipleFaceCount, maxMultipleFaceCount, minExceptionCount, maxExceptionCount, minWarningCount, maxWarningCount, userId, orgId);
     }
     }
 
 
     /**
     /**
@@ -837,12 +813,12 @@ public class TOeExamRecordServiceImpl extends ServiceImpl<TOeExamRecordMapper, T
 
 
     @Override
     @Override
     public TOeExamRecord findOneByExamId(Long examId, ExamRecordStatusEnum status) {
     public TOeExamRecord findOneByExamId(Long examId, ExamRecordStatusEnum status) {
-        return tOeExamRecordMapper.findOneByExamId(examId, status==null?null:status.name());
+        return tOeExamRecordMapper.findOneByExamId(examId, status == null ? null : status.name());
     }
     }
 
 
-	@Override
-	public List<OpenRecordNeedMarkBean> findExamRecordNeedMark(Long examId, String courseCode, Integer idGt,
-			Integer count) {
-		return tOeExamRecordMapper.findExamRecordNeedMark(examId,courseCode,idGt,count);
-	}
+    @Override
+    public List<OpenRecordNeedMarkBean> findExamRecordNeedMark(Long examId, String courseCode, Integer idGt,
+                                                               Integer count) {
+        return tOeExamRecordMapper.findExamRecordNeedMark(examId, courseCode, idGt, count);
+    }
 }
 }

+ 4 - 2
themis-business/src/main/java/com/qmth/themis/business/templete/impl/TaskRoomCodeExportTemplete.java

@@ -8,7 +8,6 @@ import com.qmth.themis.business.service.TBExamInvigilateUserService;
 import com.qmth.themis.business.templete.TaskExportCommon;
 import com.qmth.themis.business.templete.TaskExportCommon;
 import com.qmth.themis.business.templete.TaskExportTemplete;
 import com.qmth.themis.business.templete.TaskExportTemplete;
 import com.qmth.themis.business.templete.service.TempleteLogicService;
 import com.qmth.themis.business.templete.service.TempleteLogicService;
-import com.qmth.themis.business.util.JacksonUtil;
 import com.qmth.themis.common.util.Result;
 import com.qmth.themis.common.util.Result;
 import com.qmth.themis.common.util.ResultUtil;
 import com.qmth.themis.common.util.ResultUtil;
 import org.apache.poi.ss.usermodel.*;
 import org.apache.poi.ss.usermodel.*;
@@ -62,7 +61,10 @@ public class TaskRoomCodeExportTemplete implements TaskExportTemplete {
         int y = 0, min = 0;
         int y = 0, min = 0;
         try {
         try {
             taskExportCommon.getTxtList().add(DateUtil.format(new Date(), timeFormat) + "->开始准备处理导出的考场数据");
             taskExportCommon.getTxtList().add(DateUtil.format(new Date(), timeFormat) + "->开始准备处理导出的考场数据");
-            List<RoomCodeExportDto> roomCodeExportDtoList = tbExamInvigilateUserService.examInvigilateUserExport();
+            Long examId = (Long) map.get("examId");
+            String roomCode = (String) map.get("roomCode");
+            Long userId = (Long) map.get("userId");
+            List<RoomCodeExportDto> roomCodeExportDtoList = tbExamInvigilateUserService.examInvigilateUserExport(examId, roomCode, userId, taskExportCommon.getOrgId());
 
 
             boolean oss = (boolean) taskExportCommon.getOssEnv().get(SystemConstant.OSS);
             boolean oss = (boolean) taskExportCommon.getOssEnv().get(SystemConstant.OSS);
             StringJoiner stringJoiner = new StringJoiner("");
             StringJoiner stringJoiner = new StringJoiner("");

+ 3 - 0
themis-business/src/main/resources/mapper/TBExamInvigilateUserMapper.xml

@@ -27,6 +27,9 @@
             <if test="roomCode != null and roomCode != ''">
             <if test="roomCode != null and roomCode != ''">
                 and tbeiu.room_code like concat('%', #{roomCode}, '%')
                 and tbeiu.room_code like concat('%', #{roomCode}, '%')
             </if>
             </if>
+            <if test="orgId != null and orgId != ''">
+                and tbeiu.org_id = #{orgId}
+            </if>
         </where>
         </where>
         ) t
         ) t
     </sql>
     </sql>

+ 3 - 0
themis-business/src/main/resources/mapper/TBUserMapper.xml

@@ -56,6 +56,9 @@
                 <if test="enable != null and enable != '' or enable == 0">
                 <if test="enable != null and enable != '' or enable == 0">
                     and tbu.enable = #{enable}
                     and tbu.enable = #{enable}
                 </if>
                 </if>
+                <if test="orgId != null and orgId != ''">
+                    and tbu.org_id = #{orgId}
+                </if>
             </where> group by tbu.org_id,tbu.id,tbu.mobile_number,tbu.login_name,tbu.name,tbu.enable) t
             </where> group by tbu.org_id,tbu.id,tbu.mobile_number,tbu.login_name,tbu.name,tbu.enable) t
             <where>
             <where>
                 t.roleCodeStr <![CDATA[ <> ]]> 'SUPER_ADMIN'
                 t.roleCodeStr <![CDATA[ <> ]]> 'SUPER_ADMIN'

+ 13 - 2
themis-business/src/main/resources/mapper/TEExamReexamMapper.xml

@@ -29,6 +29,9 @@
                 <if test="examId != null and examId != ''">
                 <if test="examId != null and examId != ''">
                     and tees.exam_id = #{examId}
                     and tees.exam_id = #{examId}
                 </if>
                 </if>
+                <if test="orgId != null and orgId != ''">
+                    and tee.org_id = #{orgId}
+                </if>
                 <if test="examActivityId != null and examActivityId != ''">
                 <if test="examActivityId != null and examActivityId != ''">
                     and tees.exam_activity_id = #{examActivityId}
                     and tees.exam_activity_id = #{examActivityId}
                 </if>
                 </if>
@@ -85,6 +88,9 @@
              <if test="examId != null and examId != ''">
              <if test="examId != null and examId != ''">
                  and teer.exam_id = #{examId}
                  and teer.exam_id = #{examId}
              </if>
              </if>
+             <if test="orgId != null and orgId != ''">
+                 and tee.org_id = #{orgId}
+             </if>
              <if test="examActivityId != null and examActivityId != ''">
              <if test="examActivityId != null and examActivityId != ''">
                  and teer.exam_activity_id = #{examActivityId}
                  and teer.exam_activity_id = #{examActivityId}
              </if>
              </if>
@@ -141,6 +147,9 @@
             <if test="examId != null and examId != ''">
             <if test="examId != null and examId != ''">
                 and teer.exam_id = #{examId}
                 and teer.exam_id = #{examId}
             </if>
             </if>
+            <if test="orgId != null and orgId != ''">
+                and tee.org_id = #{orgId}
+            </if>
             and tee.enable = 1
             and tee.enable = 1
             and teea.enable = 1
             and teea.enable = 1
             and tees.enable = 1
             and tees.enable = 1
@@ -187,6 +196,9 @@
             <if test="examId != null and examId != ''">
             <if test="examId != null and examId != ''">
                 and teer.exam_id = #{examId}
                 and teer.exam_id = #{examId}
             </if>
             </if>
+            <if test="orgId != null and orgId != ''">
+                and tee.org_id = #{orgId}
+            </if>
             <if test="examActivityId != null and examActivityId != ''">
             <if test="examActivityId != null and examActivityId != ''">
                 and teer.exam_activity_id = #{examActivityId}
                 and teer.exam_activity_id = #{examActivityId}
             </if>
             </if>
@@ -222,8 +234,7 @@
         order by tees.room_code
         order by tees.room_code
     </select>
     </select>
     
     
-    <select id="getExamReexamPage"
-		resultType="com.qmth.themis.business.bean.backend.ExamReexamListBean">
+    <select id="getExamReexamPage" resultType="com.qmth.themis.business.bean.backend.ExamReexamListBean">
 		SELECT
 		SELECT
 		f.exam_student_id examStudentId,
 		f.exam_student_id examStudentId,
 		t.exam_id examId,
 		t.exam_id examId,

+ 3 - 0
themis-business/src/main/resources/mapper/TEStudentMapper.xml

@@ -38,6 +38,9 @@
             <if test="enable != null and enable != '' or enable == 0">
             <if test="enable != null and enable != '' or enable == 0">
                 and tes.enable = #{enable}
                 and tes.enable = #{enable}
             </if>
             </if>
+            <if test="orgId != null and orgId != ''">
+                and tes.org_id = #{orgId}
+            </if>
         </where>
         </where>
         ) t order by t.name
         ) t order by t.name
     </select>
     </select>

+ 4 - 0
themis-business/src/main/resources/mapper/TIeInvigilateWarnInfoMapper.xml

@@ -6,6 +6,7 @@
         select count(1) as count
         select count(1) as count
         from t_ie_invigilate_warn_info tiiwi
         from t_ie_invigilate_warn_info tiiwi
         left join t_e_exam_student tees on tees.id = tiiwi.exam_student_id
         left join t_e_exam_student tees on tees.id = tiiwi.exam_student_id
+        left join t_e_exam tee on tee.id = tees.exam_id
         inner join (select toer.id from t_oe_exam_record toer where EXISTS(select tees.id from t_e_exam_student tees where EXISTS (select distinct tbeiu.room_code from t_b_exam_invigilate_user tbeiu
         inner join (select toer.id from t_oe_exam_record toer where EXISTS(select tees.id from t_e_exam_student tees where EXISTS (select distinct tbeiu.room_code from t_b_exam_invigilate_user tbeiu
         where
         where
         <if test="userId != null and userId != ''">
         <if test="userId != null and userId != ''">
@@ -16,6 +17,9 @@
             <if test="examId != null and examId != ''">
             <if test="examId != null and examId != ''">
                 and tiiwi.exam_id = #{examId}
                 and tiiwi.exam_id = #{examId}
             </if>
             </if>
+            <if test="orgId != null and orgId != ''">
+                and tee.org_id = #{orgId}
+            </if>
             <if test="examActivityId != null and examActivityId != ''">
             <if test="examActivityId != null and examActivityId != ''">
                 and tiiwi.exam_activity_id = #{examActivityId}
                 and tiiwi.exam_activity_id = #{examActivityId}
             </if>
             </if>

+ 18 - 0
themis-business/src/main/resources/mapper/TOeExamRecordMapper.xml

@@ -126,6 +126,9 @@
 			<if test="examId != null and examId != ''">
 			<if test="examId != null and examId != ''">
 				and t.exam_id = #{examId}
 				and t.exam_id = #{examId}
 			</if>
 			</if>
+			<if test="orgId != null and orgId != ''">
+				and tee.org_id = #{orgId}
+			</if>
 			<if test="examActivityId != null and examActivityId != ''">
 			<if test="examActivityId != null and examActivityId != ''">
 				and t.exam_activity_id = #{examActivityId}
 				and t.exam_activity_id = #{examActivityId}
 			</if>
 			</if>
@@ -169,6 +172,9 @@
 			<if test="examId != null and examId != ''">
 			<if test="examId != null and examId != ''">
 				and t.exam_id = #{examId}
 				and t.exam_id = #{examId}
 			</if>
 			</if>
+			<if test="orgId != null and orgId != ''">
+				and tee.org_id = #{orgId}
+			</if>
 			<if test="examActivityId != null and examActivityId != ''">
 			<if test="examActivityId != null and examActivityId != ''">
 				and t.exam_activity_id = #{examActivityId}
 				and t.exam_activity_id = #{examActivityId}
 			</if>
 			</if>
@@ -352,6 +358,9 @@
 			<if test="examId != null and examId != ''">
 			<if test="examId != null and examId != ''">
 				and tiiwi.exam_id = #{examId}
 				and tiiwi.exam_id = #{examId}
 			</if>
 			</if>
+			<if test="orgId != null and orgId != ''">
+				and tee.org_id = #{orgId}
+			</if>
 			<if test="examActivityId != null and examActivityId != ''">
 			<if test="examActivityId != null and examActivityId != ''">
 				and tiiwi.exam_activity_id = #{examActivityId}
 				and tiiwi.exam_activity_id = #{examActivityId}
 			</if>
 			</if>
@@ -439,6 +448,9 @@
 			<if test="examId != null and examId != ''">
 			<if test="examId != null and examId != ''">
 				and tiiwi.exam_id = #{examId}
 				and tiiwi.exam_id = #{examId}
 			</if>
 			</if>
+			<if test="orgId != null and orgId != ''">
+				and tee.org_id = #{orgId}
+			</if>
 			<if test="examActivityId != null and examActivityId != ''">
 			<if test="examActivityId != null and examActivityId != ''">
 				and tiiwi.exam_activity_id = #{examActivityId}
 				and tiiwi.exam_activity_id = #{examActivityId}
 			</if>
 			</if>
@@ -515,6 +527,9 @@
 			<if test="examId != null and examId != ''">
 			<if test="examId != null and examId != ''">
 				and tees.exam_id = #{examId}
 				and tees.exam_id = #{examId}
 			</if>
 			</if>
+			<if test="orgId != null and orgId != ''">
+				and tee.org_id = #{orgId}
+			</if>
 			<if test="examActivityId != null and examActivityId != ''">
 			<if test="examActivityId != null and examActivityId != ''">
 				and tees.exam_activity_id = #{examActivityId}
 				and tees.exam_activity_id = #{examActivityId}
 			</if>
 			</if>
@@ -569,6 +584,9 @@
 			<if test="examId != null and examId != ''">
 			<if test="examId != null and examId != ''">
 				and tees.exam_id = #{examId}
 				and tees.exam_id = #{examId}
 			</if>
 			</if>
+			<if test="orgId != null and orgId != ''">
+				and tee.org_id = #{orgId}
+			</if>
 			<if test="examActivityId != null and examActivityId != ''">
 			<if test="examActivityId != null and examActivityId != ''">
 				and tees.exam_activity_id = #{examActivityId}
 				and tees.exam_activity_id = #{examActivityId}
 			</if>
 			</if>