diff --git a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/controller/admin/autoTools/AutoToolsController.java b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/controller/admin/autoTools/AutoToolsController.java index f0c772b2..64671efb 100644 --- a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/controller/admin/autoTools/AutoToolsController.java +++ b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/controller/admin/autoTools/AutoToolsController.java @@ -232,7 +232,7 @@ public class AutoToolsController { // 获取一共要考试多长时间 long remainingTime = info.getRemainingTime(); // 判断剩余时间是否大于等于两者相差的时间 - long times = remainingTime - secondsDifference; + long times = remainingTime - Math.abs(secondsDifference); // 开启ws // 获取上传文件时间 String time = examPaperVo.getEducationPaperParam().getUploadTime();