考试申请功能添加考试编号。
This commit is contained in:
parent
46b87b0e6e
commit
77363e9610
@ -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<String, Object> params = HashMapUtil.beanToMap(examApplyVO);
|
||||
params.put("examApplyId", examApplyId);
|
||||
if (StringUtils.isBlank(token)) {
|
||||
|
Loading…
Reference in New Issue
Block a user