From 77363e96103c01d9955f22931d9e85a91d9af0b9 Mon Sep 17 00:00:00 2001 From: Renpc-kilig <308442850@qq.com> Date: Mon, 10 May 2021 11:23:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E8=AF=95=E7=94=B3=E8=AF=B7=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=B7=BB=E5=8A=A0=E8=80=83=E8=AF=95=E7=BC=96=E5=8F=B7?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/examapply/impl/ExamApplyServiceImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/cn/com/tenlion/service/examapply/impl/ExamApplyServiceImpl.java b/src/main/java/cn/com/tenlion/service/examapply/impl/ExamApplyServiceImpl.java index 3bd9618..7391920 100644 --- a/src/main/java/cn/com/tenlion/service/examapply/impl/ExamApplyServiceImpl.java +++ b/src/main/java/cn/com/tenlion/service/examapply/impl/ExamApplyServiceImpl.java @@ -62,9 +62,16 @@ public class ExamApplyServiceImpl extends DefaultBaseService implements IExamApp @Override public String saveReturnId(String token, ExamApplyVO examApplyVO) { String examApplyId = UUIDUtil.getUUID(); + // 考场分配状态。0:未分配,1:已分配 examApplyVO.setStatus(0); + // 监考老师分配状态。0:未分配,1:已分配 examApplyVO.setUserStatus(0); + // 考试申请审核状态。0:未审核,1:审核通过,2:审核驳回 examApplyVO.setCheckStatus(0); + // 获取当前时间戳 + Long startTs = System.currentTimeMillis(); + String endData = examApplyVO.getExamId().substring(30, examApplyVO.getExamId().length()); + examApplyVO.setExamApplyNum(startTs + endData); Map params = HashMapUtil.beanToMap(examApplyVO); params.put("examApplyId", examApplyId); if (StringUtils.isBlank(token)) {