Browse Source

组卷校验bug

master
luoweijian 2 weeks ago
parent
commit
b543b1f29d
  1. 2
      src/main/java/com/project/exam/domain/service/impl/AssemblePaperDomainServiceImpl.java

2
src/main/java/com/project/exam/domain/service/impl/AssemblePaperDomainServiceImpl.java

@ -97,7 +97,7 @@ public class AssemblePaperDomainServiceImpl implements AssemblePaperDomainServic
TaskUserDTO taskUserDTO = Try.of(() -> taskUserBaseService.getOne(new LambdaQueryWrapper<TaskUserEntity>() TaskUserDTO taskUserDTO = Try.of(() -> taskUserBaseService.getOne(new LambdaQueryWrapper<TaskUserEntity>()
.eq(TaskUserEntity::getTaskId, taskId).eq(TaskUserEntity::getUserId, userId)) .eq(TaskUserEntity::getTaskId, taskId).eq(TaskUserEntity::getUserId, userId))
.toDTO(TaskUserDTO::new)).getOrNull(); .toDTO(TaskUserDTO::new)).getOrNull();
if (Objects.nonNull(taskUserDTO)) { if (Objects.isNull(taskUserDTO)) {
throw new BusinessErrorException("您无需参与本场考核"); throw new BusinessErrorException("您无需参与本场考核");
} }
if (TaskUserStatusEnum.Pass.getValue().equals(taskUserDTO.getStatus())) { if (TaskUserStatusEnum.Pass.getValue().equals(taskUserDTO.getStatus())) {

Loading…
Cancel
Save