Browse Source

3.4.2 update-1219-重置考生试卷编号、卷型

xiaofei 6 tháng trước cách đây
mục cha
commit
9a98795ec4

+ 2 - 0
distributed-print-business/src/main/java/com/qmth/distributed/print/business/service/impl/ExamTaskServiceImpl.java

@@ -1812,6 +1812,8 @@ public class ExamTaskServiceImpl extends ServiceImpl<ExamTaskMapper, ExamTask> i
                 this.removeByExamTaskId(id);
                 // 删除考场信息
                 examDetailService.deleteByExamIdAndPaperNumber(examTask.getSchoolId(), examTask.getExamId(), examTask.getPaperNumber());
+                // 清空已生成试卷编号的考生的试卷编号
+                basicExamStudentService.clearPaperNumberAndPaperTypeByExamIdAndPaperNumber(examTask.getExamId(), examTask.getPaperNumber());
             } else {
                 // 命题任务生成,命题老师未提交前允许删除
                 if (examTask.getStatus().equals(ExamStatusEnum.SUBMIT)) {

+ 1 - 1
distributed-print/src/main/java/com/qmth/distributed/print/api/SysController.java

@@ -114,7 +114,7 @@ public class SysController {
     @ApiOperation(value = "登录")
     @RequestMapping(value = "/login", method = RequestMethod.POST)
     @ApiResponses({@ApiResponse(code = 200, message = "用户信息", response = LoginResult.class)})
-    @Aac(auth = false, rateLimit = @RateLimit(count = 2, period = 60000, target = RateLimitTarget.DEVICE))
+    @Aac(auth = false)
     public Result login(@ApiParam(value = "用户信息", required = true) @Valid @RequestBody LoginParam login, BindingResult bindingResult) throws NoSuchAlgorithmException {
         if (bindingResult.hasErrors()) {
             return ResultUtil.error(bindingResult.getAllErrors().get(0).getDefaultMessage());