wangliang 4 жил өмнө
parent
commit
6c090d5c61
24 өөрчлөгдсөн 59 нэмэгдсэн , 66 устгасан
  1. 1 1
      themis-backend/src/main/java/com/qmth/themis/backend/api/SysController.java
  2. 4 8
      themis-backend/src/main/java/com/qmth/themis/backend/api/TBExamInvigilateUserController.java
  3. 2 2
      themis-backend/src/main/java/com/qmth/themis/backend/api/TBOrgController.java
  4. 6 6
      themis-backend/src/main/java/com/qmth/themis/backend/api/TBUserController.java
  5. 2 1
      themis-backend/src/main/java/com/qmth/themis/backend/api/TEExamActivityController.java
  6. 4 6
      themis-backend/src/main/java/com/qmth/themis/backend/api/TEExamController.java
  7. 2 1
      themis-backend/src/main/java/com/qmth/themis/backend/api/TEExamCourseController.java
  8. 2 4
      themis-backend/src/main/java/com/qmth/themis/backend/api/TEExamPaperController.java
  9. 2 2
      themis-backend/src/main/java/com/qmth/themis/backend/api/TEExamReexamController.java
  10. 5 10
      themis-backend/src/main/java/com/qmth/themis/backend/api/TEExamStudentController.java
  11. 3 2
      themis-backend/src/main/java/com/qmth/themis/backend/api/TEStudentController.java
  12. 2 2
      themis-backend/src/main/java/com/qmth/themis/backend/api/TIeInvigilateCallMobileController.java
  13. 3 3
      themis-backend/src/main/java/com/qmth/themis/backend/api/TIeInvigilateController.java
  14. 1 1
      themis-backend/src/main/java/com/qmth/themis/backend/api/TIeInvigilateWarnInfoController.java
  15. 1 0
      themis-business/src/main/java/com/qmth/themis/business/constant/SystemConstant.java
  16. 9 9
      themis-business/src/main/java/com/qmth/themis/business/service/impl/ProducerServerImpl.java
  17. 1 1
      themis-business/src/main/java/com/qmth/themis/business/templete/impl/TaskExamPaperImportTemplete.java
  18. 1 1
      themis-business/src/main/java/com/qmth/themis/business/templete/impl/TaskExamStudentExportTemplete.java
  19. 2 1
      themis-business/src/main/java/com/qmth/themis/business/templete/impl/TaskExamStudentImportTemplete.java
  20. 1 1
      themis-business/src/main/java/com/qmth/themis/business/templete/impl/TaskRoomCodeExportTemplete.java
  21. 2 1
      themis-business/src/main/java/com/qmth/themis/business/templete/impl/TaskRoomCodeImportTemplete.java
  22. 1 1
      themis-exam/src/main/java/com/qmth/themis/exam/api/TEExamController.java
  23. 1 1
      themis-exam/src/main/java/com/qmth/themis/exam/api/TEStudentController.java
  24. 1 1
      themis-exam/src/main/java/com/qmth/themis/exam/websocketTemplete/WebSocketOeMessageTemplete.java

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

@@ -107,7 +107,7 @@ public class SysController {
 //        Map map = new HashMap();
 //        map.put(SystemConstant.ENV_FILEHOST, schoolDto.getFileHost());
 //        return ResultUtil.ok(map);
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "上传文件接口")

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

@@ -122,7 +122,7 @@ public class TBExamInvigilateUserController {
                 throw new RuntimeException(e);
             }
         }
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "监考员导入接口")
@@ -170,9 +170,7 @@ public class TBExamInvigilateUserController {
                 throw new RuntimeException(e);
             }
         }
-        Map map = new HashMap();
-        map.put(SystemConstant.TASK_ID, tbTaskHistory.getId());
-        return ResultUtil.ok(map);
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.TASK_ID, tbTaskHistory.getId()));
     }
 
     @ApiOperation(value = "监考员导出接口")
@@ -197,7 +195,7 @@ public class TBExamInvigilateUserController {
                 mqDtoService.assembleSendOneWayMsg(mqDto);
                 //mq发送消息end
             } else {
-                return ResultUtil.ok(Collections.singletonMap("success", true));
+                return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
             }
         } catch (Exception e) {
             log.error("请求出错", e);
@@ -207,8 +205,6 @@ public class TBExamInvigilateUserController {
                 throw new RuntimeException(e);
             }
         }
-        Map map = new HashMap();
-        map.put(SystemConstant.TASK_ID, tbTaskHistory.getId());
-        return ResultUtil.ok(map);
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.TASK_ID, tbTaskHistory.getId()));
     }
 }

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

@@ -76,7 +76,7 @@ public class TBOrgController {
         redisUtil.setOrg(tbOrg.getId(), tbOrg);
         EhcacheUtil.put(SystemConstant.orgCodeCache, tbOrg.getCode(), tbOrg);
         tbOrgService.saveOrUpdate(tbOrg);
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "机构停用/启用接口")
@@ -107,6 +107,6 @@ public class TBOrgController {
         tbOrgService.updateById(tbOrg);
         redisUtil.setOrg(orgId, tbOrg);
         EhcacheUtil.put(SystemConstant.orgCodeCache, tbOrg.getCode(), tbOrg);
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 }

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

@@ -536,7 +536,7 @@ public class TBUserController {
         MqDto mqDto = new MqDto(MqTopicEnum.THEMIS_TOPIC.getCode(), MqTagEnum.USER.name(), SystemOperationEnum.LOGOUT, MqTagEnum.USER, String.valueOf(tbUser.getId()), tbUser.getLoginName());
         mqDtoService.assembleSendOneWayMsg(mqDto);
         //mq发送消息end
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     //    @CachePut(value = "user_cache", key = "'userCacheQuery'")
@@ -639,7 +639,7 @@ public class TBUserController {
                 throw new RuntimeException(e);
             }
         }
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "获取短信验证码接口")
@@ -660,14 +660,14 @@ public class TBUserController {
         if (Objects.isNull(verifyCode) || Objects.equals(verifyCode, "")) {
             throw new BusinessException(ExceptionResultEnum.VERIFYCODE_IS_NULL);
         }
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "二次验证获取短信验证码接口")
     @RequestMapping(value = "/validate/getVerifyCode", method = RequestMethod.POST)
     @ApiResponses({@ApiResponse(code = 200, message = "{\"success\":true}", response = Result.class)})
     public Result validateGetVerifyCode() {
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "用户停用/启用接口")
@@ -694,7 +694,7 @@ public class TBUserController {
         tbUser.setEnable(enable);
         tbUserService.updateById(tbUser);
         redisUtil.setUser(tbUser.getId(), tbUser);
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "用户修改密码接口")
@@ -722,6 +722,6 @@ public class TBUserController {
         tbUser.setUpdateId(currentUser.getId());
         tbUserService.updateById(tbUser);
         redisUtil.deleteUser(tbUser.getId());
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 }

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

@@ -1,6 +1,7 @@
 package com.qmth.themis.backend.api;
 
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.qmth.themis.business.constant.SystemConstant;
 import com.qmth.themis.business.dto.MqDto;
 import com.qmth.themis.business.entity.TBUser;
 import com.qmth.themis.business.entity.TEExam;
@@ -104,7 +105,7 @@ public class TEExamActivityController {
                 throw new RuntimeException(e);
             }
         }
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "考试场次查询接口")

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

@@ -195,7 +195,7 @@ public class TEExamController {
             }
         }
         teExamService.updateExamCacheBean(teExam.getId());
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "考试批次统计接口")
@@ -256,7 +256,7 @@ public class TEExamController {
         teExam.setUpdateId(tbUser.getId());
         teExamService.updateById(teExam);
         teExamService.updateExamCacheBean(teExam.getId());
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "考试批次详情接口")
@@ -341,7 +341,7 @@ public class TEExamController {
                 throw new RuntimeException(e);
             }
         }
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "监考端获取考试批次提醒接口")
@@ -499,8 +499,6 @@ public class TEExamController {
                 throw new RuntimeException(e);
             }
         }
-        Map<String, Long> map = new HashMap<String, Long>();
-        map.put(SystemConstant.TASK_ID, tbTaskHistory.getId());
-        return ResultUtil.ok(map);
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.TASK_ID, tbTaskHistory.getId()));
     }
 }

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

@@ -2,6 +2,7 @@ package com.qmth.themis.backend.api;
 
 import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.qmth.themis.business.constant.SystemConstant;
 import com.qmth.themis.business.entity.TBUser;
 import com.qmth.themis.business.entity.TEExamCourse;
 import com.qmth.themis.business.enums.FieldUniqueEnum;
@@ -67,7 +68,7 @@ public class TEExamCourseController {
             }
         }
         teExamCourseService.updateExamCourseCacheBean(teExamCourse.getExamId(), teExamCourse.getCourseCode());
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "考试科目查询接口")

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

@@ -104,7 +104,7 @@ public class TEExamPaperController {
             ExamPaperCacheBean paper = teExamPaperService.getExamPaperCacheBean(s.getId());
             examCourseService.deleteExamCourseCacheBean(paper.getExamId(), paper.getCourseCode());
         });
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "考试试卷数据包上传接口")
@@ -168,8 +168,6 @@ public class TEExamPaperController {
                 throw new RuntimeException(e);
             }
         }
-        Map<String, Long> map = new HashMap<String, Long>();
-        map.put(SystemConstant.TASK_ID, tbTaskHistory.getId());
-        return ResultUtil.ok(map);
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.TASK_ID, tbTaskHistory.getId()));
     }
 }

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

@@ -149,7 +149,7 @@ public class TEExamReexamController {
                 });
             }
         }
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "重考审核接口")
@@ -221,7 +221,7 @@ public class TEExamReexamController {
                 });
             }
         }
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "重考审核明细接口")

+ 5 - 10
themis-backend/src/main/java/com/qmth/themis/backend/api/TEExamStudentController.java

@@ -115,10 +115,7 @@ public class TEExamStudentController {
 
         mqDtoService.assembleSendOneWayMsg(mqDto);
         //mq发送消息end
-        Map<String, Long> map = new HashMap<String, Long>();
-        map.put(SystemConstant.TASK_ID, tbTaskHistory.getId());
-        return ResultUtil.ok(map);
-
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.TASK_ID, tbTaskHistory.getId()));
     }
 
     @ApiOperation(value = "考生查询接口")
@@ -178,7 +175,7 @@ public class TEExamStudentController {
         teExamStudentList.forEach(s -> {
             teExamStudentService.updateExamStudentCacheBean(s.getId());
         });
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "考生修改接口")
@@ -241,7 +238,7 @@ public class TEExamStudentController {
         for(TEExamStudent es:teExamStudentList){
             teExamStudentService.updateExamStudentCacheBean(es.getId());
         }
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "考生删除接口")
@@ -256,7 +253,7 @@ public class TEExamStudentController {
         ids.forEach(s -> {
             teExamStudentService.deleteExamStudentCacheBean(s);
         });
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "考生导入接口")
@@ -338,8 +335,6 @@ public class TEExamStudentController {
                 throw new RuntimeException(e);
             }
         }
-        Map map = new HashMap();
-        map.put(SystemConstant.TASK_ID, tbTaskHistory.getId());
-        return ResultUtil.ok(map);
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.TASK_ID, tbTaskHistory.getId()));
     }
 }

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

@@ -6,6 +6,7 @@ import com.google.gson.Gson;
 import com.qmth.themis.business.annotation.ApiJsonObject;
 import com.qmth.themis.business.annotation.ApiJsonProperty;
 import com.qmth.themis.business.config.SystemConfig;
+import com.qmth.themis.business.constant.SystemConstant;
 import com.qmth.themis.business.dto.cache.TEStudentCacheDto;
 import com.qmth.themis.business.dto.response.TEStudentDto;
 import com.qmth.themis.business.entity.TBUser;
@@ -92,7 +93,7 @@ public class TEStudentController {
         Gson gson = new Gson();
         TEStudentCacheDto teStudentCacheDto = gson.fromJson(gson.toJson(teStudent), TEStudentCacheDto.class);
         redisUtil.setStudent(teStudent.getId(), teStudentCacheDto);
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "学生修改密码接口")
@@ -122,7 +123,7 @@ public class TEStudentController {
         Gson gson = new Gson();
         TEStudentCacheDto teStudentCacheDto = gson.fromJson(gson.toJson(teStudent), TEStudentCacheDto.class);
         redisUtil.setStudent(teStudent.getId(), teStudentCacheDto);
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "学生考试记录查询接口")

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

@@ -156,7 +156,7 @@ public class TIeInvigilateCallMobileController {
         MqDto mqDto = new MqDto(MqTopicEnum.THEMIS_TOPIC.getCode(), MqTagEnum.MONITOR_LOG.name(), tIeExamInvigilateCallLog, MqTagEnum.MONITOR_LOG, String.valueOf(tIeExamInvigilateCallLog.getId()), source.name());
         mqDtoService.assembleSendOneWayMsg(mqDto);
         //监考监控通话信息 发送mq end
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "撤销通话申请接口")
@@ -189,7 +189,7 @@ public class TIeInvigilateCallMobileController {
         MqDto mqDto = new MqDto(MqTopicEnum.THEMIS_TOPIC.getCode(), MqTagEnum.MONITOR_LOG.name(), tIeExamInvigilateCallLog, MqTagEnum.MONITOR_LOG, String.valueOf(tIeExamInvigilateCallLog.getId()), source.name());
         mqDtoService.assembleSendOneWayMsg(mqDto);
         //监考监控通话信息 发送mq end
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "监考获取monitorKey接口")

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

@@ -350,7 +350,7 @@ public class TIeInvigilateController {
             mqDtoService.assembleSendOneWayMsg(mqDto);
             //发送mq给客户端强制收卷end
         }
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "在线巡考列表接口")
@@ -511,7 +511,7 @@ public class TIeInvigilateController {
                 teExamBreachLogService.saveOrUpdate(eb);
             }
         }
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "监考消息通知接口")
@@ -539,7 +539,7 @@ public class TIeInvigilateController {
 //        mqDto = new MqDto(MqTopicEnum.THEMIS_TOPIC.getCode(), MqTagEnum.OE_LIVENESS_VERIFY.name(), recordId, MqTagEnum.OE_LIVENESS_VERIFY, String.valueOf(tbUser.getId()), mapParameter, tbUser.getName());
 //        mqDtoService.assembleSendOneWayMsg(mqDto);
 //        //发送mq给客户端监考强制活体验证end
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "结束监考接口")

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

@@ -130,6 +130,6 @@ public class TIeInvigilateWarnInfoController {
                     .in(TIeInvigilateWarnInfo::getId, warningTranIds);
             tIeInvigilateWarnInfoService.update(tIeInvigilateWarnInfoUpdateWrapper);
         }
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 }

+ 1 - 0
themis-business/src/main/java/com/qmth/themis/business/constant/SystemConstant.java

@@ -61,6 +61,7 @@ public class SystemConstant {
     public static final String ID = "id";
     public static final String NAME = "name";
     public static final String TASK_ID = "taskId";
+    public static final String SUCCESS = "success";
     public static final String MD5 = "md5";
     public static final String ATTACHMENT_TYPE = "attachmentType";
     public static final String UPLOAD_TYPE = "uploadType";

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

@@ -47,7 +47,7 @@ public class ProducerServerImpl implements ProducerServer {
         SendResult sendResult = rocketMQTemplate.syncSend(mqDto.getTopic() + ":" + mqDto.getTag(), mqDto);
         // 同步消息发送成功会有一个返回值,我们可以用这个返回值进行判断和获取一些信息
         log.info("sendResult:{}", JacksonUtil.parseJson(sendResult));
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     /**
@@ -62,7 +62,7 @@ public class ProducerServerImpl implements ProducerServer {
         SendResult sendResult = rocketMQTemplate.syncSendOrderly(mqDto.getTopic() + ":" + mqDto.getTag(), mqDto, mqDto.getObjId());
         // 同步顺序消息发送成功会有一个返回值,我们可以用这个返回值进行判断和获取一些信息
         log.info("sendResult:{}", JacksonUtil.parseJson(sendResult));
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     /**
@@ -77,7 +77,7 @@ public class ProducerServerImpl implements ProducerServer {
 //        Message message = assembleMessage(mqDto);
         org.springframework.messaging.Message messageTran = MessageBuilder.withPayload(mqDto).build();
         rocketMQTemplate.syncSend(mqDto.getTopic() + ":" + mqDto.getTag(), messageTran, SystemConstant.MESSAGE_TIMEOUT, Integer.parseInt(String.valueOf(mqDto.getProperties().get("timeOut"))));
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     /**
@@ -102,7 +102,7 @@ public class ProducerServerImpl implements ProducerServer {
                 throw new BusinessException(throwable.getMessage());
             }
         });
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     /**
@@ -127,7 +127,7 @@ public class ProducerServerImpl implements ProducerServer {
                 throw new BusinessException(throwable.getMessage());
             }
         });
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     /**
@@ -154,7 +154,7 @@ public class ProducerServerImpl implements ProducerServer {
                 throw new BusinessException(throwable.getMessage());
             }
         }, SystemConstant.MESSAGE_TIMEOUT, Integer.parseInt(String.valueOf(mqDto.getProperties().get("timeOut"))));
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     /**
@@ -167,7 +167,7 @@ public class ProducerServerImpl implements ProducerServer {
     public Result sendOneWay(MqDto mqDto) {
         log.info("sendOneWay mqDto:{}", JacksonUtil.parseJson(mqDto));
         rocketMQTemplate.sendOneWay(mqDto.getTopic() + ":" + mqDto.getTag(), mqDto);
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     /**
@@ -180,7 +180,7 @@ public class ProducerServerImpl implements ProducerServer {
     public Result sendOneWayOrderly(MqDto mqDto) {
         log.info("sendOneWayOrderly mqDto:{}", JacksonUtil.parseJson(mqDto));
         rocketMQTemplate.sendOneWayOrderly(mqDto.getTopic() + ":" + mqDto.getTag(), mqDto, mqDto.getObjId());
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     /**
@@ -197,7 +197,7 @@ public class ProducerServerImpl implements ProducerServer {
         //发送事务消息
         TransactionSendResult transactionSendResult = rocketMQTemplate.sendMessageInTransaction(mqDto.getTopic() + ":" + mqDto.getTag(), messageTran, null);
         log.info("transactionSendResult:{}", JacksonUtil.parseJson(transactionSendResult));
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     /**

+ 1 - 1
themis-business/src/main/java/com/qmth/themis/business/templete/impl/TaskExamPaperImportTemplete.java

@@ -102,7 +102,7 @@ public class TaskExamPaperImportTemplete implements TaskImportTemplete {
 			taskImportCommon.getTbTaskHistory().setProgress(100.0d);
 			taskImportCommon.writeImportResultTxt(result.toString(), file);
 		}
-		return ResultUtil.ok(Collections.singletonMap("success", true));
+		return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
 	}
 
 	private void dispose(File file, Map<String, Object> map, StringBuilder result) throws IOException {

+ 1 - 1
themis-business/src/main/java/com/qmth/themis/business/templete/impl/TaskExamStudentExportTemplete.java

@@ -114,7 +114,7 @@ public class TaskExamStudentExportTemplete implements TaskExportTemplete {
             //这里写入txt文件
             taskExportCommon.writeExportResultTxt(mkdir.getPath(), "", file);
         }
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
     
 	private String uuid() {

+ 2 - 1
themis-business/src/main/java/com/qmth/themis/business/templete/impl/TaskExamStudentImportTemplete.java

@@ -3,6 +3,7 @@ package com.qmth.themis.business.templete.impl;
 import cn.hutool.core.date.DateUtil;
 import com.alibaba.fastjson.JSONObject;
 import com.google.common.collect.Lists;
+import com.qmth.themis.business.constant.SystemConstant;
 import com.qmth.themis.business.dto.ExamStudentImportDto;
 import com.qmth.themis.business.entity.TEExamActivity;
 import com.qmth.themis.business.enums.ExamModeEnum;
@@ -120,6 +121,6 @@ public class TaskExamStudentImportTemplete implements TaskImportTemplete {
                 taskImportCommon.writeImportResultTxt(taskImportCommon.getTxtList().toString(), file);
             }
         }
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 }

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

@@ -147,6 +147,6 @@ public class TaskRoomCodeExportTemplete implements TaskExportTemplete {
             //这里写入txt文件
             taskExportCommon.writeExportResultTxt(mkdir.getPath(), taskExportCommon.getTxtList().toString(), file);
         }
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 }

+ 2 - 1
themis-business/src/main/java/com/qmth/themis/business/templete/impl/TaskRoomCodeImportTemplete.java

@@ -3,6 +3,7 @@ package com.qmth.themis.business.templete.impl;
 import cn.hutool.core.date.DateUtil;
 import com.alibaba.fastjson.JSONObject;
 import com.google.common.collect.Lists;
+import com.qmth.themis.business.constant.SystemConstant;
 import com.qmth.themis.business.dto.RoomCodeImportDto;
 import com.qmth.themis.business.enums.TaskStatusEnum;
 import com.qmth.themis.business.templete.TaskImportCommon;
@@ -101,6 +102,6 @@ public class TaskRoomCodeImportTemplete implements TaskImportTemplete {
                 taskImportCommon.writeImportResultTxt(taskImportCommon.getTxtList().toString(), file);
             }
         }
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 }

+ 1 - 1
themis-exam/src/main/java/com/qmth/themis/exam/api/TEExamController.java

@@ -120,7 +120,7 @@ public class TEExamController {
         } else {
             throw new BusinessException("考试状态出错");
         }
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     @ApiOperation(value = "开始考试")

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

@@ -322,7 +322,7 @@ public class TEStudentController {
         MqDto mqDto = new MqDto(MqTopicEnum.THEMIS_TOPIC.getCode(), MqTagEnum.STUDENT.name(), SystemOperationEnum.LOGOUT, MqTagEnum.STUDENT, String.valueOf(teStudent.getId()), teStudent.getIdentity());
         mqDtoService.assembleSendOneWayMsg(mqDto);
         //mq发送消息end
-        return ResultUtil.ok(Collections.singletonMap("success", true));
+        return ResultUtil.ok(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     /**

+ 1 - 1
themis-exam/src/main/java/com/qmth/themis/exam/websocketTemplete/WebSocketOeMessageTemplete.java

@@ -53,7 +53,7 @@ public class WebSocketOeMessageTemplete {
             throw new BusinessException(ExceptionResultEnum.RECORD_NO);
         }
         ExamRecordCacheUtil.setPaperDownload(recordId, 0, true);
-        return new WebsocketDto(Collections.singletonMap("success", true));
+        return new WebsocketDto(Collections.singletonMap(SystemConstant.SUCCESS, true));
     }
 
     /**